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.001158/0.001158, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001026/0.001026, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9929/0.9929, allocations: 177.1 MB / 205 MB, free: 5.629 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.974e-06/1.974e-06, allocations: 0 / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.118e-05/3.315e-05, allocations: 2.312 kB / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003025/0.003058, allocations: 2.058 MB / 275 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.004673, allocations: 1.261 MB / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.004785, allocations: 4 kB / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006776/0.005463, allocations: 311 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004165/0.005879, allocations: 263 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000381/0.00626, allocations: 231.3 kB / 277.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003122/0.006572, allocations: 371 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.006695, allocations: 40.92 kB / 277.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.006882, allocations: 195.5 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.00703, allocations: 139.6 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.142e-05/0.007061, allocations: 20 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.007207, allocations: 87.81 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.279e-05/0.0073, allocations: 95.67 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.65e-05/0.007376, allocations: 71.77 kB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.007683, allocations: 267 kB / 278.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.007685, allocations: 0 / 278.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.007687, allocations: 0 / 278.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.007691, allocations: 7.938 kB / 278.3 MB, free: 12.16 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.0006776/0.008369, allocations: 0.697 MB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.008405, allocations: 12.03 kB / 279 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.426e-05/0.008489, allocations: 44.7 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003204/0.00881, allocations: 295.5 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.008829, allocations: 4.375 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.982e-05/0.008849, allocations: 12.38 kB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/0.009025, allocations: 96.62 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.009033, allocations: 3.938 kB / 279.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.009046, allocations: 8 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.009054, allocations: 4 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.518e-05/0.009129, allocations: 43.81 kB / 279.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005027/0.009632, allocations: 459.3 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.009797, allocations: 95.2 kB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.983e-05/0.009847, allocations: 31.67 kB / 280.1 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.009863, allocations: 0 / 280.1 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001328/0.009996, allocations: 113 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 8.71e-07/0.009997, allocations: 0 / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002735/0.01027, allocations: 173.3 kB / 280.4 MB, free: 9.941 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.172e-05/0.0103, allocations: 51.41 kB / 280.5 MB, free: 9.879 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.01061, allocations: 414.7 kB / 280.9 MB, free: 9.457 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.01063, allocations: 33.69 kB / 280.9 MB, free: 9.418 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.01074, allocations: 218.8 kB / 281.1 MB, free: 9.199 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.724e-05/0.01077, allocations: 47.67 kB / 281.1 MB, free: 9.152 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.997e-05/0.01082, allocations: 47.36 kB / 281.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.01096, allocations: 0.5196 MB / 281.7 MB, free: 8.566 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.296e-05/0.01101, allocations: 23.98 kB / 281.7 MB, free: 8.543 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.095e-05/0.0111, allocations: 133.1 kB / 281.9 MB, free: 8.383 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.916e-05/0.01119, allocations: 81.8 kB / 281.9 MB, free: 8.293 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.01119, allocations: 0 / 281.9 MB, free: 8.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001675/0.01136, allocations: 149.3 kB / 282.1 MB, free: 8.141 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.01137, allocations: 4 kB / 282.1 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.01137, allocations: 96 / 282.1 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.01139, allocations: 8 kB / 282.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.263e-05/0.01147, allocations: 23.92 kB / 282.1 MB, free: 8.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.01148, allocations: 3.938 kB / 282.1 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.69e-05/0.01154, allocations: 23.88 kB / 282.2 MB, free: 8.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.318e-06/0.01155, allocations: 4 kB / 282.2 MB, free: 8.074 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 9.464e-05/0.01165, allocations: 178.5 kB / 282.3 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.242e-05/0.01168, allocations: 35.81 kB / 282.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002364/0.01192, allocations: 162.6 kB / 282.5 MB, free: 7.691 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.01192, allocations: 7.984 kB / 282.5 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.01193, allocations: 0 / 282.5 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.01193, allocations: 3.938 kB / 282.5 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.01211, allocations: 236.5 kB / 282.8 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.01211, allocations: 0 / 282.8 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.145e-05/0.01214, allocations: 15.94 kB / 282.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.01214, allocations: 4 kB / 282.8 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.01215, allocations: 0 / 282.8 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.01215, allocations: 3.984 kB / 282.8 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01215, allocations: 0 / 282.8 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.01237, allocations: 200.1 kB / 283 MB, free: 7.172 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.205e-05/0.01241, allocations: 31.75 kB / 283 MB, free: 7.141 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.911e-05/0.01244, allocations: 15.98 kB / 283 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.92e-05/0.01247, allocations: 4 kB / 283 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.01252, allocations: 15.97 kB / 283.1 MB, free: 7.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.01254, allocations: 12 kB / 283.1 MB, free: 7.094 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001866/0.01272, allocations: 279 kB / 283.3 MB, free: 6.828 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01272, allocations: 0 / 283.3 MB, free: 6.828 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001991/0.01292, allocations: 55.92 kB / 283.4 MB, free: 6.773 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.0008024/0.01373, allocations: 404.2 kB / 283.8 MB, free: 6.516 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002475/0.01397, allocations: 95.48 kB / 283.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.01397, allocations: 0 / 283.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.462e-05/0.01404, allocations: 55.73 kB / 283.9 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.01432, allocations: 89.16 kB / 284 MB, free: 6.277 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005473/0.01486, allocations: 452.1 kB / 284.5 MB, free: 5.805 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.059e-05/0.01492, allocations: 100.2 kB / 284.6 MB, free: 5.688 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.359e-05/0.015, allocations: 42.25 kB / 284.6 MB, free: 5.648 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.231e-05/0.01505, allocations: 32.48 kB / 284.6 MB, free: 5.617 MB / 266.7 MB Notification: Performance of SimCode: time 8.91e-07/0.01505, allocations: 0 / 284.6 MB, free: 5.617 MB / 266.7 MB Notification: Performance of Templates: time 0.006368/0.02142, allocations: 4.06 MB / 288.7 MB, free: 1.602 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: 3.1420437581837177]