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.001625/0.001625, allocations: 114.1 kB / 18.45 MB, free: 4.605 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.001902/0.001902, allocations: 208.3 kB / 21.41 MB, free: 1.648 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.5/1.5, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.001738/0.001738, allocations: 44.03 kB / 374.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1457, allocations: 53.33 MB / 427.5 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.005273/0.151, allocations: 1.611 MB / 429.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007943/0.1518, allocations: 167.4 kB / 429.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.1519, allocations: 3.938 kB / 429.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.652e-05/0.152, allocations: 7.875 kB / 429.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001738/0.1522, allocations: 15.92 kB / 429.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004192/0.1526, allocations: 51.83 kB / 429.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001991/0.1528, allocations: 59.89 kB / 429.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.153, allocations: 24.22 kB / 429.4 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.014e-05/0.153, allocations: 35.8 kB / 429.5 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.819e-05/0.1531, allocations: 27.84 kB / 429.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.736e-05/0.1532, allocations: 8 kB / 429.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.951e-05/0.1532, allocations: 4 kB / 429.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.045e-05/0.1533, allocations: 15.92 kB / 429.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.848e-05/0.1533, allocations: 43.72 kB / 429.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.1536, allocations: 75.59 kB / 429.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1536, allocations: 7.938 kB / 429.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1536, allocations: 3.938 kB / 429.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1536, allocations: 0 / 429.6 MB, free: 2.098 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.0007583/0.1543, allocations: 387.1 kB / 430 MB, free: 1.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.1544, allocations: 8.031 kB / 430 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.246e-05/0.1544, allocations: 12.84 kB / 430 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004656/0.1549, allocations: 198.4 kB / 430.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.904e-05/0.1549, allocations: 8.375 kB / 430.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.155, allocations: 8.375 kB / 430.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006294/0.1556, allocations: 194.3 kB / 430.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1556, allocations: 192 / 430.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.1556, allocations: 7.938 kB / 430.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.974e-06/0.1556, allocations: 4 kB / 430.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.1558, allocations: 35.98 kB / 430.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006872/0.1565, allocations: 365.8 kB / 430.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003307/0.1569, allocations: 115.9 kB / 430.9 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.1571, allocations: 58.56 kB / 431 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.337e-05/0.1571, allocations: 7.984 kB / 431 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/0.1571, allocations: 34.5 kB / 431 MB, free: 484 kB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.555e-06/0.1571, allocations: 0 / 431 MB, free: 484 kB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006166/0.1578, allocations: 137.7 kB / 431.2 MB, free: 340 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.1579, allocations: 106.8 kB / 431.3 MB, free: 208 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.1581, allocations: 148.4 kB / 431.4 MB, free: 52 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.1581, allocations: 25.7 kB / 431.5 MB, free: 20 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.1582, allocations: 100.3 kB / 431.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.079e-05/0.1583, allocations: 7.984 kB / 431.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.973e-05/0.1584, allocations: 33.92 kB / 431.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.1586, allocations: 326.8 kB / 431.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.472e-05/0.1587, allocations: 11.98 kB / 431.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.1588, allocations: 81.38 kB / 432 MB, free: 15.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.1591, allocations: 113.2 kB / 432.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.1591, allocations: 4 kB / 432.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003857/0.1595, allocations: 121.6 kB / 432.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.1595, allocations: 4 kB / 432.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1595, allocations: 4 kB / 432.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.1596, allocations: 4 kB / 432.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.084e-05/0.1596, allocations: 7.984 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.1596, allocations: 7.938 kB / 432.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.645e-05/0.1597, allocations: 7.938 kB / 432.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.1597, allocations: 8 kB / 432.3 MB, free: 15.1 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.0001735/0.1599, allocations: 133.7 kB / 432.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.1602, allocations: 81.58 kB / 432.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.806e-05/0.1602, allocations: 20.7 kB / 432.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.1602, allocations: 4 kB / 432.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1603, allocations: 0 / 432.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1603, allocations: 0 / 432.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004857/0.1607, allocations: 197.5 kB / 432.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1607, allocations: 0 / 432.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.258e-05/0.1608, allocations: 3.938 kB / 432.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/0.1608, allocations: 4 kB / 432.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.1608, allocations: 7.938 kB / 432.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1608, allocations: 0 / 432.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.1608, allocations: 4 kB / 432.7 MB, free: 14.59 MB / 366.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: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.0006736/0.1615, allocations: 348.7 kB / 433.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.1616, allocations: 97.05 kB / 433.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/0.1617, allocations: 0 / 433.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.1618, allocations: 8 kB / 433.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.5e-05/0.1619, allocations: 3.938 kB / 433.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.1619, allocations: 7.984 kB / 433.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001481/0.1621, allocations: 107.2 kB / 433.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1621, allocations: 0 / 433.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005636/0.1626, allocations: 12 kB / 433.3 MB, free: 13.98 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.0001719/0.1628, allocations: 103.8 kB / 433.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003621/0.1632, allocations: 75.78 kB / 433.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1632, allocations: 0 / 433.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.929e-05/0.1632, allocations: 8.625 kB / 433.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007645/0.164, allocations: 62.39 kB / 433.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008092/0.1648, allocations: 233.3 kB / 433.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005555/0.1653, allocations: 0.7002 MB / 434.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.393e-05/0.1654, allocations: 15.42 kB / 434.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1654, allocations: 0 / 434.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of Templates: time 0.004617/0.17, allocations: 0.9924 MB / 435.5 MB, free: 11.72 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/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: 6.990105105011025]