Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002018/0.002018, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.762/1.762, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 43.94 kB / 373.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1554, allocations: 53.33 MB / 426.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.004035/0.1594, allocations: 1.615 MB / 428.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006246/0.16, allocations: 175.3 kB / 428.6 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.1602, allocations: 4 kB / 428.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.1604, allocations: 11.86 kB / 428.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.1606, allocations: 3.938 kB / 428.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003376/0.161, allocations: 55.81 kB / 428.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.1611, allocations: 59.89 kB / 428.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.1613, allocations: 24.22 kB / 428.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.524e-05/0.1614, allocations: 27.86 kB / 428.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.177e-05/0.1614, allocations: 31.84 kB / 428.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.1615, allocations: 4 kB / 428.8 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.63e-05/0.1615, allocations: 4 kB / 428.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.1616, allocations: 31.91 kB / 428.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.36e-05/0.1617, allocations: 31.75 kB / 428.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.1619, allocations: 83.52 kB / 429 MB, free: 2.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.1619, allocations: 0 / 429 MB, free: 2.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1619, allocations: 0 / 429 MB, free: 2.125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1619, allocations: 0 / 429 MB, free: 2.125 MB / 350.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.000755/0.1626, allocations: 391 kB / 429.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.1627, allocations: 8.031 kB / 429.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.252e-05/0.1628, allocations: 16.84 kB / 429.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.1631, allocations: 200.2 kB / 429.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.1631, allocations: 384 / 429.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.1631, allocations: 12.38 kB / 429.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005128/0.1637, allocations: 184.5 kB / 429.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.1637, allocations: 4.125 kB / 429.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.1637, allocations: 3.938 kB / 429.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.1637, allocations: 4 kB / 429.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.1638, allocations: 43.91 kB / 429.8 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006051/0.1644, allocations: 369.8 kB / 430.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002414/0.1647, allocations: 119.8 kB / 430.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.1648, allocations: 54.62 kB / 430.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.1648, allocations: 3.984 kB / 430.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.951e-05/0.1649, allocations: 46.5 kB / 430.4 MB, free: 496 kB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.1649, allocations: 0 / 430.4 MB, free: 496 kB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.000441/0.1653, allocations: 129.5 kB / 430.5 MB, free: 360 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.1654, allocations: 110.8 kB / 430.6 MB, free: 224 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.1656, allocations: 141.7 kB / 430.8 MB, free: 72 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.1657, allocations: 33.64 kB / 430.8 MB, free: 32 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1658, allocations: 92.62 kB / 430.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.1658, allocations: 4 kB / 430.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.065e-05/0.1659, allocations: 33.66 kB / 430.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002274/0.1661, allocations: 322.8 kB / 431.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.213e-05/0.1661, allocations: 12 kB / 431.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.1663, allocations: 81.44 kB / 431.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001635/0.1664, allocations: 113.2 kB / 431.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1664, allocations: 4 kB / 431.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002339/0.1667, allocations: 117.4 kB / 431.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.1667, allocations: 10.5 kB / 431.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1667, allocations: 0 / 431.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.1667, allocations: 4 kB / 431.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.392e-05/0.1668, allocations: 8.375 kB / 431.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.776e-05/0.1668, allocations: 7.938 kB / 431.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.47e-05/0.1669, allocations: 12.27 kB / 431.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.1669, allocations: 8 kB / 431.6 MB, free: 15.12 MB / 366.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.0001826/0.167, allocations: 133.7 kB / 431.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.1672, allocations: 85.58 kB / 431.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.187e-05/0.1673, allocations: 12.72 kB / 431.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.1673, allocations: 7.984 kB / 431.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.1673, allocations: 0 / 431.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.1673, allocations: 0 / 431.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003346/0.1676, allocations: 193.5 kB / 432 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1676, allocations: 4 kB / 432 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.298e-05/0.1677, allocations: 11.98 kB / 432 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1677, allocations: 3.938 kB / 432 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.1677, allocations: 0 / 432 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.1677, allocations: 11.92 kB / 432.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1677, allocations: 0 / 432.1 MB, free: 14.6 MB / 366.1 MB [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8012:5-8012: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.0005457/0.1682, allocations: 336.5 kB / 432.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.1683, allocations: 97.03 kB / 432.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.478e-05/0.1684, allocations: 4 kB / 432.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.519e-05/0.1685, allocations: 0 / 432.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.1685, allocations: 11.94 kB / 432.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.435e-06/0.1685, allocations: 4 kB / 432.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001025/0.1686, allocations: 107.2 kB / 432.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1686, allocations: 0 / 432.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003204/0.169, allocations: 12 kB / 432.6 MB, free: 14 MB / 366.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.0001564/0.1691, allocations: 102.2 kB / 432.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002375/0.1693, allocations: 72.41 kB / 432.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1693, allocations: 4.062 kB / 432.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.366e-05/0.1694, allocations: 15.94 kB / 432.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005311/0.1699, allocations: 52.25 kB / 432.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005305/0.1705, allocations: 207.6 kB / 433.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/0.1709, allocations: 0.7003 MB / 433.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.002e-05/0.171, allocations: 8.438 kB / 433.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.314e-05/0.171, allocations: 15.42 kB / 433.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.171, allocations: 0 / 433.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of Templates: time 0.004504/0.1755, allocations: 0.7891 MB / 434.6 MB, free: 11.98 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.460845302790403]