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.0008977/0.0008977, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.0008885/0.0008885, allocations: 174.4 kB / 24.92 MB, free: 8.723 MB / 18.57 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 0.877/0.877, allocations: 177.1 MB / 205.3 MB, free: 5.066 MB / 186.7 MB " [Timeout remaining time 179] 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 1.382e-06/1.382e-06, allocations: 3.938 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.91e-05/2.048e-05, allocations: 2.312 kB / 273.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00332/0.00334, allocations: 2.033 MB / 275.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.005373, allocations: 1.274 MB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.005494, allocations: 8 kB / 276.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007645/0.006259, allocations: 307 kB / 277.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000523/0.006782, allocations: 263 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005119/0.007294, allocations: 231.4 kB / 277.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004105/0.007704, allocations: 367 kB / 277.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.007828, allocations: 42.88 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/0.008091, allocations: 199.4 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001913/0.008282, allocations: 135.7 kB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.608e-05/0.008318, allocations: 16 kB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001871/0.008505, allocations: 95.8 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.008611, allocations: 87.67 kB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.169e-05/0.008703, allocations: 75.72 kB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003662/0.009069, allocations: 263 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.009072, allocations: 4 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.009073, allocations: 0 / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.009077, allocations: 0 / 278.8 MB, free: 11.79 MB / 266.7 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.0007005/0.009777, allocations: 0.5723 MB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.009813, allocations: 12.03 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.349e-05/0.009876, allocations: 24.91 kB / 279.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.01022, allocations: 256.7 kB / 279.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.01024, allocations: 12.38 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.01026, allocations: 12.38 kB / 279.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.01043, allocations: 89.02 kB / 279.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.01044, allocations: 3.938 kB / 279.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.01045, allocations: 7.984 kB / 279.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.01046, allocations: 4 kB / 279.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.661e-05/0.01053, allocations: 30.48 kB / 279.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004635/0.01099, allocations: 265.6 kB / 280.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/0.01117, allocations: 125.2 kB / 280.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.68e-05/0.01122, allocations: 28.86 kB / 280.2 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.01124, allocations: 4 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001412/0.01138, allocations: 92.83 kB / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.934e-06/0.01138, allocations: 0 / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002154/0.01159, allocations: 109.5 kB / 280.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.01163, allocations: 51.41 kB / 280.5 MB, free: 9.977 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003325/0.01196, allocations: 337 kB / 280.8 MB, free: 9.633 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.01198, allocations: 29.7 kB / 280.8 MB, free: 9.598 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.817e-05/0.01206, allocations: 140.9 kB / 281 MB, free: 9.457 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.336e-05/0.0121, allocations: 47.67 kB / 281 MB, free: 9.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.449e-05/0.01217, allocations: 45.67 kB / 281.1 MB, free: 9.359 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.01228, allocations: 346.7 kB / 281.4 MB, free: 9.012 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.179e-05/0.01233, allocations: 18.81 kB / 281.4 MB, free: 8.992 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.492e-05/0.01241, allocations: 106.4 kB / 281.5 MB, free: 8.863 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001006/0.01251, allocations: 74.92 kB / 281.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.01251, allocations: 0 / 281.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001728/0.01269, allocations: 112.4 kB / 281.7 MB, free: 8.664 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.0127, allocations: 12 kB / 281.7 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.01271, allocations: 4 kB / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.01272, allocations: 0 / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.47e-05/0.01282, allocations: 23.92 kB / 281.7 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.367e-06/0.01282, allocations: 4 kB / 281.7 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.234e-05/0.0129, allocations: 15.95 kB / 281.8 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.01291, allocations: 3.938 kB / 281.8 MB, free: 8.602 MB / 266.7 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.0001049/0.01302, allocations: 134.6 kB / 281.9 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.64e-05/0.01305, allocations: 19.98 kB / 281.9 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.01324, allocations: 120.5 kB / 282 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.01325, allocations: 0 / 282 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.01325, allocations: 0 / 282 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.01325, allocations: 4 kB / 282 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.01343, allocations: 149.6 kB / 282.2 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01343, allocations: 0 / 282.2 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.807e-05/0.01347, allocations: 12 kB / 282.2 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.01347, allocations: 0 / 282.2 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.01348, allocations: 4 kB / 282.2 MB, free: 8.133 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.01348, allocations: 0 / 282.2 MB, free: 8.133 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.01349, allocations: 7.984 kB / 282.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001625/0.01365, allocations: 139.9 kB / 282.3 MB, free: 7.969 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.517e-05/0.01369, allocations: 31.75 kB / 282.4 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/0.01374, allocations: 4 kB / 282.4 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.367e-05/0.0138, allocations: 7.984 kB / 282.4 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.832e-05/0.01385, allocations: 19.97 kB / 282.4 MB, free: 7.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.01386, allocations: 0 / 282.4 MB, free: 7.906 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001753/0.01404, allocations: 147.6 kB / 282.5 MB, free: 7.762 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01404, allocations: 3.938 kB / 282.5 MB, free: 7.758 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002818/0.01432, allocations: 51.92 kB / 282.6 MB, free: 7.707 MB / 266.7 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.001581/0.0159, allocations: 0.5157 MB / 283.1 MB, free: 7.418 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001629/0.01606, allocations: 72.67 kB / 283.2 MB, free: 7.344 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.01607, allocations: 4 kB / 283.2 MB, free: 7.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.073e-05/0.01614, allocations: 44.77 kB / 283.2 MB, free: 7.293 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.01642, allocations: 89.36 kB / 283.3 MB, free: 7.211 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006483/0.01707, allocations: 462.8 kB / 283.8 MB, free: 6.738 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.58e-05/0.01715, allocations: 100.3 kB / 283.9 MB, free: 6.621 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.01725, allocations: 38.25 kB / 283.9 MB, free: 6.586 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.01741, allocations: 95.36 kB / 284 MB, free: 6.492 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01741, allocations: 0 / 284 MB, free: 6.492 MB / 266.7 MB Notification: Performance of Templates: time 0.008637/0.02605, allocations: 4.424 MB / 288.4 MB, free: 2.133 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.696122840978205]