Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 92.62 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002045/0.002045, allocations: 153.4 kB / 24.26 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.444e-05/2.634e-05, allocations: 2.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.005645/0.005671, allocations: 1.946 MB / 269.3 MB, free: 4.777 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003846/0.009517, allocations: 1.106 MB / 270.4 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.009655, allocations: 3.938 kB / 270.4 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001457/0.01111, allocations: 307.1 kB / 270.7 MB, free: 3.363 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009301/0.01204, allocations: 215.2 kB / 270.9 MB, free: 3.152 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001342/0.01338, allocations: 287.2 kB / 271.2 MB, free: 2.871 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007535/0.01414, allocations: 347 kB / 271.5 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.01435, allocations: 44.5 kB / 271.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004751/0.01483, allocations: 187.5 kB / 271.7 MB, free: 2.301 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003725/0.0152, allocations: 135.6 kB / 271.9 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.468e-05/0.01527, allocations: 16 kB / 271.9 MB, free: 2.152 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003402/0.01561, allocations: 83.88 kB / 271.9 MB, free: 2.07 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000198/0.01581, allocations: 91.67 kB / 272 MB, free: 1.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.01599, allocations: 71.77 kB / 272.1 MB, free: 1.91 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00081/0.0168, allocations: 358.7 kB / 272.5 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.0168, allocations: 0 / 272.5 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.0168, allocations: 4 kB / 272.5 MB, free: 1.555 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.01681, allocations: 0 / 272.5 MB, free: 1.555 MB / 250.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.001596/0.0184, allocations: 0.5894 MB / 273.1 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.01845, allocations: 8.922 kB / 273.1 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.01862, allocations: 40.75 kB / 273.1 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007529/0.01937, allocations: 269.7 kB / 273.4 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/0.0194, allocations: 8.375 kB / 273.4 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.397e-05/0.01945, allocations: 19.94 kB / 273.4 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004688/0.01992, allocations: 125.5 kB / 273.5 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.01993, allocations: 3.938 kB / 273.5 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.01995, allocations: 4 kB / 273.5 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.01997, allocations: 4 kB / 273.5 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000353/0.02032, allocations: 67.95 kB / 273.6 MB, free: 360 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.02147, allocations: 416 kB / 274 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000693/0.02217, allocations: 130.7 kB / 274.1 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.02241, allocations: 48.83 kB / 274.2 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.033e-05/0.02244, allocations: 4 kB / 274.2 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004455/0.02289, allocations: 111.3 kB / 274.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.194e-06/0.02289, allocations: 0 / 274.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.001083/0.02397, allocations: 244.8 kB / 274.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.02405, allocations: 51.41 kB / 274.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/0.02508, allocations: 428.5 kB / 275 MB, free: 14.87 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.442e-05/0.02513, allocations: 37.7 kB / 275 MB, free: 14.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002629/0.0254, allocations: 175.9 kB / 275.2 MB, free: 14.65 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.653e-05/0.02548, allocations: 39.7 kB / 275.2 MB, free: 14.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.02561, allocations: 37.7 kB / 275.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003305/0.02594, allocations: 346.8 kB / 275.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.02618, allocations: 47.97 kB / 275.7 MB, free: 14.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003755/0.02655, allocations: 139.7 kB / 275.8 MB, free: 14.01 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004825/0.02703, allocations: 118.5 kB / 275.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.02704, allocations: 0 / 275.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0007386/0.02778, allocations: 185.4 kB / 276.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.02781, allocations: 4 kB / 276.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.02782, allocations: 3.938 kB / 276.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.137e-05/0.02785, allocations: 4 kB / 276.1 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.02809, allocations: 23.92 kB / 276.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.0281, allocations: 4 kB / 276.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.02832, allocations: 19.88 kB / 276.2 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.02834, allocations: 8.062 kB / 276.2 MB, free: 13.63 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.0003211/0.02866, allocations: 171.8 kB / 276.3 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.02879, allocations: 39.78 kB / 276.4 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007983/0.02959, allocations: 204.4 kB / 276.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.02959, allocations: 4 kB / 276.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.0296, allocations: 3.938 kB / 276.6 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.02961, allocations: 0 / 276.6 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004737/0.03008, allocations: 221.1 kB / 276.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.03008, allocations: 4 kB / 276.8 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.03018, allocations: 12 kB / 276.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.03019, allocations: 0 / 276.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.905e-05/0.03022, allocations: 7.984 kB / 276.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.061e-05/0.03023, allocations: 7.938 kB / 276.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.03023, allocations: 0 / 276.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007535/0.03098, allocations: 219.5 kB / 277 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.03108, allocations: 35.8 kB / 277.1 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.52e-05/0.03115, allocations: 4 kB / 277.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.03131, allocations: 7.938 kB / 277.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.863e-05/0.03141, allocations: 23.97 kB / 277.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.022e-05/0.03144, allocations: 4 kB / 277.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007306/0.03217, allocations: 319 kB / 277.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.03217, allocations: 0 / 277.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005687/0.03274, allocations: 59.88 kB / 277.5 MB, free: 12.24 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.002507/0.03524, allocations: 466.8 kB / 277.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000364/0.03561, allocations: 123.8 kB / 278.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.03561, allocations: 4.125 kB / 278.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.03576, allocations: 55.97 kB / 278.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004547/0.03622, allocations: 88.28 kB / 278.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009476/0.03717, allocations: 0.5089 MB / 278.7 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.03736, allocations: 169.8 kB / 278.9 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.03751, allocations: 50.25 kB / 278.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.71e-05/0.03758, allocations: 24.5 kB / 279 MB, free: 10.91 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.03759, allocations: 4 kB / 279 MB, free: 10.91 MB / 266.7 MB Notification: Performance of Templates: time 0.009703/0.04729, allocations: 3.998 MB / 283 MB, free: 6.961 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.517642410006374]