Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001708/0.001707, allocations: 107.5 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001909/0.001909, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.099/2.099, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 51.17 kB / 300.6 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.151, allocations: 49.45 MB / 350.1 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.004197/0.1552, allocations: 1.648 MB / 351.7 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005535/0.1558, allocations: 171.4 kB / 351.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.1561, allocations: 4 kB / 351.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.196e-05/0.1562, allocations: 7.922 kB / 351.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001581/0.1563, allocations: 0 / 351.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004039/0.1567, allocations: 51.89 kB / 351.9 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.1569, allocations: 55.84 kB / 352 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.1571, allocations: 44.14 kB / 352 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.822e-05/0.1572, allocations: 23.86 kB / 352.1 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.967e-05/0.1572, allocations: 31.8 kB / 352.1 MB, free: 2.582 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.1573, allocations: 4 kB / 352.1 MB, free: 2.578 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.742e-05/0.1573, allocations: 8 kB / 352.1 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.771e-05/0.1574, allocations: 15.92 kB / 352.1 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.147e-05/0.1574, allocations: 39.73 kB / 352.2 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.1576, allocations: 47.91 kB / 352.2 MB, free: 2.469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.1576, allocations: 0 / 352.2 MB, free: 2.469 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1576, allocations: 0 / 352.2 MB, free: 2.469 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1576, allocations: 0 / 352.2 MB, free: 2.469 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007896/0.1584, allocations: 383.5 kB / 352.6 MB, free: 2.043 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.1585, allocations: 8.031 kB / 352.6 MB, free: 2.035 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.698e-05/0.1586, allocations: 16.75 kB / 352.6 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.1588, allocations: 204 kB / 352.8 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.1589, allocations: 8.375 kB / 352.8 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.1589, allocations: 12.36 kB / 352.8 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004584/0.1594, allocations: 177.5 kB / 353 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1594, allocations: 4.188 kB / 353 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.1594, allocations: 11.88 kB / 353 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.1594, allocations: 0 / 353 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.1596, allocations: 43.92 kB / 353.1 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005296/0.1601, allocations: 369.8 kB / 353.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.1603, allocations: 115.7 kB / 353.5 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.1604, allocations: 70.67 kB / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.654e-05/0.1605, allocations: 0 / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.1605, allocations: 38.56 kB / 353.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.462e-06/0.1605, allocations: 0 / 353.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003942/0.1609, allocations: 133.4 kB / 353.8 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.926e-05/0.161, allocations: 106.8 kB / 353.9 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.1612, allocations: 141.7 kB / 354 MB, free: 424 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.1612, allocations: 25.7 kB / 354 MB, free: 392 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.894e-05/0.1613, allocations: 96.66 kB / 354.1 MB, free: 288 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.1613, allocations: 4 kB / 354.1 MB, free: 284 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.698e-05/0.1614, allocations: 37.61 kB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1615, allocations: 314.8 kB / 354.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.816e-05/0.1616, allocations: 15.98 kB / 354.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.298e-05/0.1617, allocations: 85.38 kB / 354.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.1619, allocations: 109.2 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.1619, allocations: 0 / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000247/0.1621, allocations: 117.4 kB / 354.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.1622, allocations: 4.375 kB / 354.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.1622, allocations: 7.984 kB / 354.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.1622, allocations: 4 kB / 354.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.089e-05/0.1623, allocations: 7.938 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.1623, allocations: 3.938 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.606e-05/0.1624, allocations: 12.19 kB / 354.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.1624, allocations: 16 kB / 354.8 MB, free: 15.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (step.y,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.y,hold1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.1625, allocations: 129.8 kB / 355 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.1627, allocations: 89.47 kB / 355.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.62e-05/0.1628, allocations: 16.72 kB / 355.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1628, allocations: 0 / 355.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.1628, allocations: 4 kB / 355.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.1628, allocations: 0 / 355.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002815/0.1631, allocations: 193.4 kB / 355.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1631, allocations: 8 kB / 355.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.854e-05/0.1631, allocations: 3.938 kB / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.972e-06/0.1631, allocations: 4 kB / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.1631, allocations: 0 / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1632, allocations: 3.984 kB / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1632, allocations: 0 / 355.3 MB, free: 14.96 MB / 302.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7947:5-7947:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004738/0.1636, allocations: 344.5 kB / 355.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.139e-05/0.1637, allocations: 101 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.1638, allocations: 4 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.1639, allocations: 7.984 kB / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.1639, allocations: 0 / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.1639, allocations: 4 kB / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.416e-05/0.164, allocations: 113.5 kB / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.164, allocations: 0 / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003151/0.1643, allocations: 12 kB / 355.9 MB, free: 14.35 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (step.y,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001385/0.1645, allocations: 114.4 kB / 356 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001984/0.1647, allocations: 64.48 kB / 356 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.1647, allocations: 4.062 kB / 356 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.848e-05/0.1648, allocations: 11.92 kB / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006043/0.1654, allocations: 55.98 kB / 356.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000764/0.1662, allocations: 259.3 kB / 356.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006126/0.1668, allocations: 0.7082 MB / 357.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.354e-05/0.1669, allocations: 11.44 kB / 357.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1669, allocations: 0 / 357.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of Templates: time 0.004326/0.1712, allocations: 0.9724 MB / 358.1 MB, free: 12.09 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches