Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001004/0.001004, allocations: 164.8 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.049/1.049, allocations: 177 MB / 205.2 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.71e-07/8.71e-07, allocations: 0 / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.133e-05, allocations: 6.25 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003218/0.003239, allocations: 2.083 MB / 275.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.005054, allocations: 1.273 MB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.005167, allocations: 7.938 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007253/0.005892, allocations: 311 kB / 277.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004281/0.00632, allocations: 255 kB / 277.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004021/0.006722, allocations: 223.3 kB / 277.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003193/0.007042, allocations: 367 kB / 277.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.007171, allocations: 42.8 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.007397, allocations: 207.4 kB / 278.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.007555, allocations: 131.7 kB / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.13e-05/0.007586, allocations: 20 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.007762, allocations: 99.78 kB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.043e-05/0.007852, allocations: 83.69 kB / 278.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.923e-05/0.007922, allocations: 75.77 kB / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002991/0.008221, allocations: 262.9 kB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.008224, allocations: 4 kB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.008225, allocations: 4 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.008232, allocations: 0 / 278.8 MB, free: 11.77 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.0005378/0.008769, allocations: 0.5684 MB / 279.4 MB, free: 11.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.008812, allocations: 15.98 kB / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.108e-05/0.008853, allocations: 20.92 kB / 279.4 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.009091, allocations: 260.7 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.009111, allocations: 8.375 kB / 279.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.009126, allocations: 16.31 kB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.009253, allocations: 92.86 kB / 279.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.009262, allocations: 192 / 279.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.009273, allocations: 8.359 kB / 279.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.009281, allocations: 7.938 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.657e-05/0.009327, allocations: 31.97 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003396/0.009667, allocations: 265.6 kB / 280.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.009792, allocations: 121.3 kB / 280.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.009825, allocations: 24.84 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.009842, allocations: 8 kB / 280.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001086/0.009951, allocations: 98.09 kB / 280.3 MB, free: 10.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.009952, allocations: 4 kB / 280.3 MB, free: 10.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001603/0.01011, allocations: 105.6 kB / 280.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.677e-05/0.01014, allocations: 51.41 kB / 280.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.01037, allocations: 341 kB / 280.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.01039, allocations: 25.7 kB / 280.9 MB, free: 9.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.555e-05/0.01045, allocations: 136.9 kB / 281 MB, free: 9.438 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4e-05/0.01049, allocations: 43.67 kB / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.607e-05/0.01054, allocations: 41.69 kB / 281.1 MB, free: 9.348 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.01064, allocations: 354.7 kB / 281.4 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.666e-05/0.01067, allocations: 18.81 kB / 281.4 MB, free: 8.973 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.882e-05/0.01074, allocations: 103 kB / 281.5 MB, free: 8.848 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.352e-05/0.01081, allocations: 71.22 kB / 281.6 MB, free: 8.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.01082, allocations: 0 / 281.6 MB, free: 8.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001197/0.01094, allocations: 108.3 kB / 281.7 MB, free: 8.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.01095, allocations: 8 kB / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.01096, allocations: 3.984 kB / 281.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.01097, allocations: 0 / 281.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.746e-05/0.01105, allocations: 32.02 kB / 281.8 MB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.01105, allocations: 8 kB / 281.8 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.3e-05/0.0111, allocations: 7.953 kB / 281.8 MB, free: 8.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.609e-06/0.01111, allocations: 8 kB / 281.8 MB, free: 8.59 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 8.682e-05/0.01119, allocations: 134.5 kB / 281.9 MB, free: 8.449 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.01121, allocations: 15.98 kB / 281.9 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.01136, allocations: 119.8 kB / 282 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.01136, allocations: 4 kB / 282 MB, free: 8.309 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.01136, allocations: 3.938 kB / 282.1 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.01137, allocations: 4 kB / 282.1 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.0115, allocations: 149.7 kB / 282.2 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.01151, allocations: 0 / 282.2 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.504e-05/0.01154, allocations: 15.98 kB / 282.2 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.01154, allocations: 4 kB / 282.2 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.01155, allocations: 0 / 282.2 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.01155, allocations: 4 kB / 282.2 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.01155, allocations: 0 / 282.2 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001173/0.01167, allocations: 142.5 kB / 282.4 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.817e-05/0.0117, allocations: 31.75 kB / 282.4 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.01172, allocations: 4 kB / 282.4 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.422e-05/0.01176, allocations: 11.98 kB / 282.4 MB, free: 7.906 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.389e-05/0.0118, allocations: 15.97 kB / 282.4 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.01181, allocations: 4 kB / 282.4 MB, free: 7.887 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001149/0.01193, allocations: 151.5 kB / 282.6 MB, free: 7.734 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01193, allocations: 0 / 282.6 MB, free: 7.734 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001593/0.01209, allocations: 51.92 kB / 282.6 MB, free: 7.684 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.00114/0.01323, allocations: 0.4946 MB / 283.1 MB, free: 7.371 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001274/0.01335, allocations: 72.77 kB / 283.2 MB, free: 7.297 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/0.01337, allocations: 7.938 kB / 283.2 MB, free: 7.289 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.313e-05/0.01342, allocations: 44.69 kB / 283.2 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.01364, allocations: 109.2 kB / 283.4 MB, free: 7.145 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000571/0.01422, allocations: 452 kB / 283.8 MB, free: 6.676 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.189e-05/0.01428, allocations: 96.3 kB / 283.9 MB, free: 6.562 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.472e-05/0.01435, allocations: 38.39 kB / 283.9 MB, free: 6.527 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.01447, allocations: 103.3 kB / 284 MB, free: 6.426 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01447, allocations: 0 / 284 MB, free: 6.426 MB / 266.7 MB Notification: Performance of Templates: time 0.006191/0.02066, allocations: 4.413 MB / 288.4 MB, free: 2.066 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.80496520223096]