Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.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.001481/0.001481, allocations: 120.2 kB / 21.94 MB, free: 28 kB / 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.001967/0.001967, allocations: 208.8 kB / 25.24 MB, free: 3.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 207.6 MB / 236 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 51.92 kB / 348.4 MB, free: 9.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3347, allocations: 49.16 MB / 397.6 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003826/0.3385, allocations: 2.004 MB / 399.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.3404, allocations: 1.08 MB / 400.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.3406, allocations: 10.28 kB / 400.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009956/0.3416, allocations: 314.1 kB / 401 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004906/0.3421, allocations: 208.1 kB / 401.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.3427, allocations: 274 kB / 401.5 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003956/0.3431, allocations: 337.2 kB / 401.8 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.3433, allocations: 48 kB / 401.8 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.3434, allocations: 145.8 kB / 402 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.3437, allocations: 154.1 kB / 402.1 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.3437, allocations: 17.28 kB / 402.1 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.3439, allocations: 99.36 kB / 402.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.344, allocations: 89.52 kB / 402.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.3441, allocations: 124.7 kB / 402.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004915/0.3446, allocations: 352 kB / 402.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3446, allocations: 1.344 kB / 402.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3446, allocations: 0 / 402.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.3447, allocations: 3.938 kB / 402.8 MB, free: 6.438 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000946/0.3456, allocations: 0.5912 MB / 403.4 MB, free: 5.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3456, allocations: 13.27 kB / 403.4 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.459e-05/0.3457, allocations: 40.48 kB / 403.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.3462, allocations: 265.9 kB / 403.7 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.3462, allocations: 12.67 kB / 403.7 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.3462, allocations: 16.03 kB / 403.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002795/0.3465, allocations: 143.2 kB / 403.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3465, allocations: 0.7969 kB / 403.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.3465, allocations: 6.781 kB / 403.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3465, allocations: 1.25 kB / 403.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001689/0.3467, allocations: 75.42 kB / 404 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007142/0.3474, allocations: 467.8 kB / 404.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.3477, allocations: 121.1 kB / 404.5 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.3478, allocations: 43.31 kB / 404.6 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.3479, allocations: 2.875 kB / 404.6 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002348/0.3481, allocations: 115.2 kB / 404.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.3481, allocations: 1.062 kB / 404.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005043/0.3486, allocations: 222.8 kB / 404.9 MB, free: 4.973 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.3487, allocations: 109.7 kB / 405 MB, free: 4.844 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005196/0.3492, allocations: 427.9 kB / 405.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.3492, allocations: 33.62 kB / 405.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.3493, allocations: 176.4 kB / 405.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.45e-05/0.3493, allocations: 40.66 kB / 405.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.124e-05/0.3494, allocations: 43.2 kB / 405.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.299e-05/0.3495, allocations: 344.9 kB / 406.1 MB, free: 4.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.3496, allocations: 45.55 kB / 406.1 MB, free: 4.055 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.3497, allocations: 106 kB / 406.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.3499, allocations: 103.3 kB / 406.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3499, allocations: 0 / 406.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000304/0.3502, allocations: 176.4 kB / 406.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.3502, allocations: 10.14 kB / 406.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3503, allocations: 3.938 kB / 406.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.3503, allocations: 2.219 kB / 406.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.3504, allocations: 25.11 kB / 406.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.3504, allocations: 1.938 kB / 406.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.833e-05/0.3505, allocations: 23.02 kB / 406.5 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.3505, allocations: 8.172 kB / 406.6 MB, free: 3.797 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001468/0.3507, allocations: 172 kB / 406.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.257e-05/0.3507, allocations: 33.7 kB / 406.8 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003743/0.3511, allocations: 184.7 kB / 406.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3511, allocations: 1.438 kB / 406.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3511, allocations: 1.344 kB / 406.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3511, allocations: 4.75 kB / 406.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002786/0.3514, allocations: 275.1 kB / 407.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3514, allocations: 1.125 kB / 407.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.192e-05/0.3514, allocations: 11.31 kB / 407.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3514, allocations: 5.031 kB / 407.2 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.3514, allocations: 7.766 kB / 407.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.3515, allocations: 1.594 kB / 407.2 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3515, allocations: 7.984 kB / 407.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003548/0.3518, allocations: 199.8 kB / 407.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.3519, allocations: 33.86 kB / 407.5 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.496e-05/0.3519, allocations: 11.08 kB / 407.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.038e-05/0.352, allocations: 8.766 kB / 407.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.489e-05/0.3521, allocations: 15.25 kB / 407.5 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.3521, allocations: 4.734 kB / 407.5 MB, free: 3.152 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003258/0.3524, allocations: 319.4 kB / 407.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3524, allocations: 3.938 kB / 407.8 MB, free: 3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003181/0.3527, allocations: 53.91 kB / 407.9 MB, free: 2.988 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001509/0.3542, allocations: 414.6 kB / 408.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000311/0.3545, allocations: 117.4 kB / 408.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3545, allocations: 1.375 kB / 408.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.3547, allocations: 52.89 kB / 408.5 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004364/0.3551, allocations: 71.73 kB / 408.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.3561, allocations: 0.5272 MB / 409 MB, free: 2.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.3564, allocations: 0.7705 MB / 409.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.089e-05/0.3565, allocations: 35.98 kB / 409.9 MB, free: 1.512 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3565, allocations: 0 / 409.9 MB, free: 1.512 MB / 318.1 MB Notification: Performance of Templates: time 0.007965/0.3644, allocations: 4.209 MB / 414.1 MB, free: 15.62 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.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: 7.995841210940853]