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.001326/0.001326, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002253/0.003579, allocations: 449.8 kB / 10.44 MB, free: 252 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.001396/0.001396, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001884/0.00328, allocations: 479.5 kB / 11.82 MB, free: 2.344 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 1.103/1.103, allocations: 177.2 MB / 189.8 MB, free: 5.266 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1197/1.223, allocations: 53.66 MB / 243.4 MB, free: 15.52 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.873e-06/1.873e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.847e-05/3.035e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003411/0.003441, allocations: 2.1 MB / 246.8 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.005355, allocations: 1.285 MB / 248.1 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.005511, allocations: 3.938 kB / 248.1 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006817/0.006193, allocations: 291 kB / 248.4 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000504/0.006697, allocations: 286.8 kB / 248.7 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000525/0.007222, allocations: 230.1 kB / 248.9 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004274/0.007649, allocations: 359 kB / 249.2 MB, free: 9.688 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.007791, allocations: 38.83 kB / 249.3 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003376/0.008128, allocations: 281.5 kB / 249.5 MB, free: 9.375 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.008313, allocations: 139.6 kB / 249.7 MB, free: 9.238 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.008345, allocations: 16 kB / 249.7 MB, free: 9.223 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000217/0.008562, allocations: 91.81 kB / 249.8 MB, free: 9.133 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.008664, allocations: 79.72 kB / 249.9 MB, free: 9.055 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.922e-05/0.008733, allocations: 55.81 kB / 249.9 MB, free: 9 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.009082, allocations: 247 kB / 250.2 MB, free: 8.758 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.388e-05/0.009096, allocations: 0 / 250.2 MB, free: 8.758 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.009098, allocations: 0 / 250.2 MB, free: 8.758 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.00911, allocations: 0 / 250.2 MB, free: 8.758 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.0007733/0.009884, allocations: 0.6149 MB / 250.8 MB, free: 8.105 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.00992, allocations: 16.03 kB / 250.8 MB, free: 8.09 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.266e-05/0.009982, allocations: 28.91 kB / 250.8 MB, free: 8.062 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.0103, allocations: 244.9 kB / 251.1 MB, free: 7.793 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.01033, allocations: 12.38 kB / 251.1 MB, free: 7.781 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.095e-05/0.01035, allocations: 16.31 kB / 251.1 MB, free: 7.766 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.01052, allocations: 93.81 kB / 251.2 MB, free: 7.668 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.01053, allocations: 3.938 kB / 251.2 MB, free: 7.664 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.01055, allocations: 0 / 251.2 MB, free: 7.664 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.01055, allocations: 7.938 kB / 251.2 MB, free: 7.656 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.765e-05/0.0106, allocations: 27.23 kB / 251.2 MB, free: 7.633 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004007/0.011, allocations: 277.4 kB / 251.5 MB, free: 7.344 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.01116, allocations: 121.3 kB / 251.6 MB, free: 7.215 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.669e-05/0.0112, allocations: 20.84 kB / 251.6 MB, free: 7.191 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.01122, allocations: 4 kB / 251.6 MB, free: 7.188 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001534/0.01137, allocations: 102 kB / 251.7 MB, free: 7.074 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.414e-06/0.01137, allocations: 0 / 251.7 MB, free: 7.074 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001936/0.01156, allocations: 109.6 kB / 251.8 MB, free: 6.961 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.01159, allocations: 51.41 kB / 251.9 MB, free: 6.898 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002457/0.01184, allocations: 337 kB / 252.2 MB, free: 6.555 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.01187, allocations: 29.7 kB / 252.2 MB, free: 6.52 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.757e-05/0.01193, allocations: 136.9 kB / 252.4 MB, free: 6.383 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.72e-05/0.01197, allocations: 47.61 kB / 252.4 MB, free: 6.336 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.971e-05/0.01202, allocations: 41.69 kB / 252.5 MB, free: 6.289 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.01213, allocations: 350.7 kB / 252.8 MB, free: 5.938 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.324e-05/0.01216, allocations: 14.83 kB / 252.8 MB, free: 5.922 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.919e-05/0.01224, allocations: 107.7 kB / 252.9 MB, free: 5.789 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.183e-05/0.01233, allocations: 71.69 kB / 253 MB, free: 5.711 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.01233, allocations: 0 / 253 MB, free: 5.711 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001261/0.01245, allocations: 104.4 kB / 253.1 MB, free: 5.602 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.01247, allocations: 8 kB / 253.1 MB, free: 5.594 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.01248, allocations: 0 / 253.1 MB, free: 5.594 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.01249, allocations: 3.984 kB / 253.1 MB, free: 5.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.91e-05/0.01259, allocations: 27.98 kB / 253.1 MB, free: 5.562 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.0126, allocations: 0 / 253.1 MB, free: 5.562 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.046e-05/0.01266, allocations: 27.94 kB / 253.2 MB, free: 5.535 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.01267, allocations: 3.938 kB / 253.2 MB, free: 5.531 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 0.0003052/0.01297, allocations: 138.6 kB / 253.3 MB, free: 5.387 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/0.013, allocations: 23.97 kB / 253.3 MB, free: 5.363 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001692/0.01317, allocations: 118.9 kB / 253.4 MB, free: 5.246 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.01317, allocations: 0 / 253.4 MB, free: 5.246 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.01317, allocations: 4 kB / 253.4 MB, free: 5.242 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.01318, allocations: 3.938 kB / 253.4 MB, free: 5.238 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001467/0.01332, allocations: 161.5 kB / 253.6 MB, free: 5.062 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01333, allocations: 0 / 253.6 MB, free: 5.062 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.301e-05/0.01337, allocations: 15.98 kB / 253.6 MB, free: 5.047 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.768e-05/0.0134, allocations: 23.81 kB / 253.6 MB, free: 5.023 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.0134, allocations: 4 kB / 253.6 MB, free: 5.02 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.01341, allocations: 4 kB / 253.7 MB, free: 5.016 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.01342, allocations: 3.984 kB / 253.7 MB, free: 5.012 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.01342, allocations: 0 / 253.7 MB, free: 5.012 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001361/0.01355, allocations: 134.5 kB / 253.8 MB, free: 4.859 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.01358, allocations: 4 kB / 253.8 MB, free: 4.855 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.883e-05/0.01363, allocations: 11.98 kB / 253.8 MB, free: 4.844 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.689e-05/0.01368, allocations: 15.98 kB / 253.8 MB, free: 4.828 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.01369, allocations: 7.984 kB / 253.8 MB, free: 4.82 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000126/0.01382, allocations: 147.5 kB / 254 MB, free: 4.672 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01382, allocations: 0 / 254 MB, free: 4.672 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001877/0.01401, allocations: 55.92 kB / 254 MB, free: 4.617 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.001398/0.01541, allocations: 0.5615 MB / 254.6 MB, free: 4.324 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001794/0.01559, allocations: 83.83 kB / 254.7 MB, free: 4.242 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/0.0156, allocations: 4 kB / 254.7 MB, free: 4.238 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.25e-05/0.01567, allocations: 52.67 kB / 254.7 MB, free: 4.184 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.01609, allocations: 464.6 kB / 255.2 MB, free: 3.66 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007847/0.01687, allocations: 448.1 kB / 255.6 MB, free: 3.191 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.438e-05/0.01694, allocations: 100.3 kB / 255.7 MB, free: 3.074 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.336e-05/0.01703, allocations: 38.45 kB / 255.8 MB, free: 3.035 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.01715, allocations: 103.3 kB / 255.9 MB, free: 2.934 MB / 250.7 MB Notification: Performance of SimCode: time 1.282e-06/0.01716, allocations: 0 / 255.9 MB, free: 2.934 MB / 250.7 MB Notification: Performance of Templates: time 0.008331/0.02549, allocations: 4.535 MB / 260.4 MB, free: 14.47 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1304933298379183]