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.000746/0.000746, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001044/0.00179, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007863/0.0007863, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009644/0.001751, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9796/0.9796, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08778/1.067, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.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.442e-06/1.442e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.738e-05/1.883e-05, allocations: 2.312 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003263/0.003282, allocations: 2.103 MB / 246.6 MB, free: 12.21 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.005419, allocations: 1.278 MB / 247.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.00556, allocations: 7.938 kB / 247.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007453/0.006305, allocations: 291 kB / 248.2 MB, free: 10.63 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005241/0.006829, allocations: 270.9 kB / 248.5 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005656/0.007395, allocations: 231.3 kB / 248.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004461/0.007841, allocations: 359 kB / 249 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.007981, allocations: 50.81 kB / 249.1 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003747/0.008356, allocations: 265.6 kB / 249.3 MB, free: 9.48 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002021/0.008558, allocations: 135.6 kB / 249.5 MB, free: 9.348 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.099e-05/0.008599, allocations: 20 kB / 249.5 MB, free: 9.328 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000222/0.008821, allocations: 95.84 kB / 249.6 MB, free: 9.234 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.008927, allocations: 75.78 kB / 249.7 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.213e-05/0.009009, allocations: 59.75 kB / 249.7 MB, free: 9.102 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004795/0.009488, allocations: 243 kB / 250 MB, free: 8.863 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-05/0.009506, allocations: 0 / 250 MB, free: 8.863 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.009508, allocations: 4 kB / 250 MB, free: 8.859 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.009526, allocations: 0 / 250 MB, free: 8.859 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.0008516/0.01038, allocations: 0.6227 MB / 250.6 MB, free: 8.199 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.01042, allocations: 8.031 kB / 250.6 MB, free: 8.191 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.2e-05/0.01048, allocations: 24.91 kB / 250.6 MB, free: 8.168 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.01085, allocations: 248.9 kB / 250.9 MB, free: 7.895 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.01088, allocations: 8.375 kB / 250.9 MB, free: 7.887 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.01091, allocations: 16.36 kB / 250.9 MB, free: 7.871 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.01111, allocations: 88.95 kB / 251 MB, free: 7.777 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.01112, allocations: 3.938 kB / 251 MB, free: 7.773 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.01113, allocations: 8 kB / 251 MB, free: 7.766 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.01114, allocations: 0 / 251 MB, free: 7.766 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.615e-05/0.01122, allocations: 27.97 kB / 251 MB, free: 7.738 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000535/0.01175, allocations: 277.4 kB / 251.3 MB, free: 7.449 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.01193, allocations: 125.2 kB / 251.4 MB, free: 7.316 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.501e-05/0.01197, allocations: 28.84 kB / 251.4 MB, free: 7.285 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.01199, allocations: 0 / 251.4 MB, free: 7.285 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001628/0.01215, allocations: 98 kB / 251.5 MB, free: 7.176 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.993e-06/0.01215, allocations: 0 / 251.5 MB, free: 7.176 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002265/0.01238, allocations: 105.4 kB / 251.6 MB, free: 7.07 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.01241, allocations: 55.41 kB / 251.7 MB, free: 7.004 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.01269, allocations: 337 kB / 252 MB, free: 6.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.01271, allocations: 33.7 kB / 252 MB, free: 6.621 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.691e-05/0.01277, allocations: 140.9 kB / 252.2 MB, free: 6.48 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.77e-05/0.0128, allocations: 35.69 kB / 252.2 MB, free: 6.445 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.825e-05/0.01285, allocations: 49.66 kB / 252.3 MB, free: 6.391 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.376e-05/0.01293, allocations: 346.7 kB / 252.6 MB, free: 6.043 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.632e-05/0.01296, allocations: 18.81 kB / 252.6 MB, free: 6.023 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.774e-05/0.01301, allocations: 111.5 kB / 252.7 MB, free: 5.887 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.332e-05/0.01308, allocations: 64.17 kB / 252.8 MB, free: 5.812 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.01308, allocations: 8.031 kB / 252.8 MB, free: 5.805 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001097/0.01319, allocations: 104.4 kB / 252.9 MB, free: 5.695 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.0132, allocations: 11.22 kB / 252.9 MB, free: 5.688 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.01321, allocations: 0 / 252.9 MB, free: 5.688 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.01322, allocations: 4 kB / 252.9 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.886e-05/0.01331, allocations: 23.98 kB / 252.9 MB, free: 5.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.01331, allocations: 0 / 252.9 MB, free: 5.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.58e-05/0.01337, allocations: 19.89 kB / 253 MB, free: 5.641 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.01338, allocations: 7.938 kB / 253 MB, free: 5.633 MB / 250.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 8.943e-05/0.01347, allocations: 138.7 kB / 253.1 MB, free: 5.488 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.01351, allocations: 15.98 kB / 253.1 MB, free: 5.473 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.01371, allocations: 116.5 kB / 253.2 MB, free: 5.355 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.01371, allocations: 4 kB / 253.2 MB, free: 5.352 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.01371, allocations: 0 / 253.2 MB, free: 5.352 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.01372, allocations: 0 / 253.2 MB, free: 5.352 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.01386, allocations: 157.6 kB / 253.4 MB, free: 5.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.01386, allocations: 0 / 253.4 MB, free: 5.18 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.62e-05/0.01391, allocations: 15.94 kB / 253.4 MB, free: 5.164 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.159e-05/0.01396, allocations: 35.8 kB / 253.4 MB, free: 5.129 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.01397, allocations: 4 kB / 253.4 MB, free: 5.125 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.01398, allocations: 4 kB / 253.5 MB, free: 5.121 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.01398, allocations: 4 kB / 253.5 MB, free: 5.117 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.01398, allocations: 0 / 253.5 MB, free: 5.117 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001275/0.01411, allocations: 134.6 kB / 253.6 MB, free: 4.965 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.01414, allocations: 7.984 kB / 253.6 MB, free: 4.957 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.336e-05/0.01418, allocations: 4 kB / 253.6 MB, free: 4.953 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/0.01423, allocations: 23.91 kB / 253.6 MB, free: 4.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.01424, allocations: 4 kB / 253.6 MB, free: 4.926 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.01435, allocations: 147.5 kB / 253.8 MB, free: 4.777 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01435, allocations: 4 kB / 253.8 MB, free: 4.773 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001684/0.01452, allocations: 47.94 kB / 253.8 MB, free: 4.727 MB / 250.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.001252/0.01578, allocations: 0.5602 MB / 254.4 MB, free: 4.43 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001272/0.0159, allocations: 75.84 kB / 254.5 MB, free: 4.355 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.01591, allocations: 4 kB / 254.5 MB, free: 4.352 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.946e-05/0.01596, allocations: 52.41 kB / 254.5 MB, free: 4.301 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.01618, allocations: 116.4 kB / 254.6 MB, free: 4.199 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007077/0.01689, allocations: 452.1 kB / 255.1 MB, free: 3.727 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.145e-05/0.01694, allocations: 96.3 kB / 255.2 MB, free: 3.613 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.186e-05/0.01701, allocations: 38.27 kB / 255.2 MB, free: 3.574 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.01712, allocations: 103.3 kB / 255.3 MB, free: 3.473 MB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01712, allocations: 0 / 255.3 MB, free: 3.473 MB / 250.7 MB Notification: Performance of Templates: time 0.006216/0.02334, allocations: 4.498 MB / 259.8 MB, free: 15.05 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 -ignoreHideResult -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.673029098659754]