Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001552/0.001552, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001821/0.001821, allocations: 214.7 kB / 24.48 MB, free: 3.941 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 2.097/2.097, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 47.92 kB / 379 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3358, allocations: 53.36 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004319/0.3402, allocations: 1.988 MB / 434.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.3431, allocations: 1.224 MB / 435.5 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.3432, allocations: 0 / 435.5 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.3443, allocations: 319.1 kB / 435.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008467/0.3452, allocations: 263.1 kB / 436.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008065/0.346, allocations: 242.6 kB / 436.3 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005575/0.3465, allocations: 351.1 kB / 436.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.3467, allocations: 48.7 kB / 436.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002626/0.347, allocations: 151.4 kB / 436.9 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002778/0.3473, allocations: 155.4 kB / 437 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.64e-05/0.3473, allocations: 23.94 kB / 437 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002378/0.3475, allocations: 95.91 kB / 437.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.3477, allocations: 87.69 kB / 437.2 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.3478, allocations: 99.33 kB / 437.3 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005895/0.3484, allocations: 373.3 kB / 437.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3484, allocations: 0 / 437.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3484, allocations: 0 / 437.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.3484, allocations: 0 / 437.7 MB, free: 1.336 MB / 334.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.001213/0.3496, allocations: 0.6049 MB / 438.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3497, allocations: 8.031 kB / 438.3 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.127e-05/0.3498, allocations: 36.7 kB / 438.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005516/0.3503, allocations: 276.8 kB / 438.6 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.3503, allocations: 8.375 kB / 438.6 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.673e-05/0.3504, allocations: 20.12 kB / 438.6 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.3507, allocations: 119.2 kB / 438.7 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.3507, allocations: 0 / 438.7 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.3508, allocations: 7.984 kB / 438.8 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.3508, allocations: 7.984 kB / 438.8 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.351, allocations: 71.77 kB / 438.8 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008232/0.3518, allocations: 416.1 kB / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004281/0.3522, allocations: 130.8 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.3524, allocations: 52.77 kB / 439.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.3524, allocations: 4 kB / 439.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.3527, allocations: 111.3 kB / 439.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.764e-06/0.3527, allocations: 0 / 439.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006442/0.3533, allocations: 229.3 kB / 439.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.3534, allocations: 59.34 kB / 439.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006654/0.354, allocations: 461.6 kB / 440.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.3541, allocations: 37.7 kB / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.3542, allocations: 168 kB / 440.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.594e-05/0.3543, allocations: 43.67 kB / 440.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.288e-05/0.3544, allocations: 41.7 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.3546, allocations: 350.7 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.3547, allocations: 43.98 kB / 440.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.3549, allocations: 147.7 kB / 441.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.3552, allocations: 113.8 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3552, allocations: 0 / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004191/0.3556, allocations: 189.3 kB / 441.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.3556, allocations: 4 kB / 441.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3556, allocations: 0 / 441.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.3557, allocations: 11.94 kB / 441.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.3558, allocations: 19.98 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3558, allocations: 4 kB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.356, allocations: 19.88 kB / 441.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.356, allocations: 8.062 kB / 441.4 MB, free: 13.36 MB / 350.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.0001937/0.3562, allocations: 171.5 kB / 441.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.17e-05/0.3562, allocations: 31.81 kB / 441.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004853/0.3567, allocations: 207 kB / 441.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.3567, allocations: 0 / 441.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.3567, allocations: 0 / 441.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3567, allocations: 4 kB / 441.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.357, allocations: 225.1 kB / 442.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.357, allocations: 0 / 442.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.005e-05/0.3571, allocations: 19.94 kB / 442.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3571, allocations: 0 / 442.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.3571, allocations: 11.98 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3571, allocations: 3.938 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3571, allocations: 3.938 kB / 442.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000449/0.3576, allocations: 216.8 kB / 442.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.223e-05/0.3576, allocations: 31.8 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.886e-05/0.3577, allocations: 4 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.3578, allocations: 15.92 kB / 442.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.956e-05/0.3579, allocations: 23.92 kB / 442.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.3579, allocations: 4 kB / 442.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005021/0.3584, allocations: 335.1 kB / 442.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3584, allocations: 0 / 442.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003901/0.3588, allocations: 51.94 kB / 442.8 MB, free: 11.97 MB / 350.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 (17): * Single equations (assignments): 13 * 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.001846/0.3606, allocations: 457.2 kB / 443.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003868/0.361, allocations: 127.2 kB / 443.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.361, allocations: 4.125 kB / 443.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.3612, allocations: 59.92 kB / 443.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000522/0.3617, allocations: 84.05 kB / 443.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.3627, allocations: 0.5284 MB / 444 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.3629, allocations: 174.1 kB / 444.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001368/0.3631, allocations: 38.27 kB / 444.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.71e-05/0.3632, allocations: 31.42 kB / 444.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3632, allocations: 0 / 444.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of Templates: time 0.03317/0.3964, allocations: 4.26 MB / 448.5 MB, free: 6.414 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 6.715601383999456]