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.001085/0.001085, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001151/0.001151, allocations: 163.8 kB / 24.99 MB, free: 9.324 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.033/1.033, allocations: 177 MB / 205.2 MB, free: 5.227 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 2.034e-06/2.034e-06, allocations: 0 / 273 MB, free: 1.598 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.495e-05/3.699e-05, allocations: 3.719 kB / 273 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003626/0.003663, allocations: 2.054 MB / 275 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.005555, allocations: 1.261 MB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.005708, allocations: 3.938 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007653/0.006473, allocations: 307.1 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004668/0.00694, allocations: 266.9 kB / 276.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004599/0.0074, allocations: 227.3 kB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003999/0.0078, allocations: 371 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.007927, allocations: 44.89 kB / 277.5 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.008147, allocations: 195.5 kB / 277.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.008305, allocations: 131.7 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.091e-05/0.008335, allocations: 20 kB / 277.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.008503, allocations: 91.84 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.774e-05/0.008601, allocations: 91.69 kB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.635e-05/0.008677, allocations: 75.7 kB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00035/0.009027, allocations: 270.9 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.009031, allocations: 0 / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.009033, allocations: 4 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.009038, allocations: 0 / 278.3 MB, free: 12.2 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.000808/0.009847, allocations: 0.6971 MB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.009885, allocations: 19.92 kB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.494e-05/0.00996, allocations: 40.7 kB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.01028, allocations: 287.6 kB / 279.4 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.0103, allocations: 4.375 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.817e-05/0.01032, allocations: 16.36 kB / 279.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.01051, allocations: 98.05 kB / 279.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.01052, allocations: 4.188 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.01053, allocations: 8.312 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.01054, allocations: 7.938 kB / 279.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.396e-05/0.01062, allocations: 35.97 kB / 279.6 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005416/0.01116, allocations: 455.3 kB / 280 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.01133, allocations: 95.25 kB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.626e-05/0.01138, allocations: 31.67 kB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.45e-05/0.0114, allocations: 7.938 kB / 280.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001458/0.01154, allocations: 105 kB / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.01154, allocations: 0 / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000288/0.01183, allocations: 169.4 kB / 280.4 MB, free: 9.984 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.01187, allocations: 55.41 kB / 280.5 MB, free: 9.918 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005037/0.01237, allocations: 414.6 kB / 280.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.01239, allocations: 29.7 kB / 280.9 MB, free: 9.461 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.0125, allocations: 218.8 kB / 281.1 MB, free: 9.242 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.01254, allocations: 43.69 kB / 281.1 MB, free: 9.199 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/0.01259, allocations: 47.36 kB / 281.2 MB, free: 9.145 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.01274, allocations: 0.5274 MB / 281.7 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.306e-05/0.01279, allocations: 19.98 kB / 281.7 MB, free: 8.586 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.197e-05/0.01288, allocations: 129.8 kB / 281.9 MB, free: 8.426 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.814e-05/0.01298, allocations: 77.67 kB / 281.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01298, allocations: 0 / 281.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001786/0.01316, allocations: 157.2 kB / 282.1 MB, free: 8.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.01317, allocations: 4 kB / 282.1 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.01317, allocations: 4.094 kB / 282.1 MB, free: 8.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.01319, allocations: 4 kB / 282.1 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.891e-05/0.01328, allocations: 19.98 kB / 282.1 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.01328, allocations: 0 / 282.1 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.589e-05/0.01335, allocations: 19.89 kB / 282.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.01336, allocations: 11.94 kB / 282.2 MB, free: 8.117 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.0001072/0.01347, allocations: 178.5 kB / 282.3 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.0135, allocations: 39.8 kB / 282.4 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.01373, allocations: 168.4 kB / 282.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.01373, allocations: 0 / 282.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.01373, allocations: 0 / 282.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.01374, allocations: 0 / 282.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.01392, allocations: 244.4 kB / 282.8 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.01392, allocations: 0 / 282.8 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.369e-05/0.01396, allocations: 11.98 kB / 282.8 MB, free: 7.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.01396, allocations: 4 kB / 282.8 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.01397, allocations: 0 / 282.8 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.01397, allocations: 0 / 282.8 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.01397, allocations: 0 / 282.8 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.01416, allocations: 211 kB / 283 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.205e-05/0.01419, allocations: 31.73 kB / 283 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.01421, allocations: 8 kB / 283 MB, free: 7.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.03e-05/0.01426, allocations: 11.98 kB / 283 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.274e-05/0.01432, allocations: 7.984 kB / 283.1 MB, free: 7.148 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.01433, allocations: 15.98 kB / 283.1 MB, free: 7.133 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001805/0.01451, allocations: 275.1 kB / 283.3 MB, free: 6.867 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01451, allocations: 0 / 283.3 MB, free: 6.867 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002145/0.01473, allocations: 51.94 kB / 283.4 MB, free: 6.816 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.0008662/0.01559, allocations: 402.2 kB / 283.8 MB, free: 6.531 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001817/0.01578, allocations: 99.03 kB / 283.9 MB, free: 6.434 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01578, allocations: 4.125 kB / 283.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.902e-05/0.01585, allocations: 58.41 kB / 283.9 MB, free: 6.371 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.01613, allocations: 90.38 kB / 284 MB, free: 6.285 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008509/0.01698, allocations: 452.1 kB / 284.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.736e-05/0.01704, allocations: 96.3 kB / 284.6 MB, free: 5.699 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.964e-05/0.01713, allocations: 42.25 kB / 284.6 MB, free: 5.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.195e-05/0.01719, allocations: 32.44 kB / 284.6 MB, free: 5.629 MB / 266.7 MB Notification: Performance of SimCode: time 1.643e-06/0.01719, allocations: 0 / 284.6 MB, free: 5.629 MB / 266.7 MB Notification: Performance of Templates: time 0.006221/0.02342, allocations: 4.057 MB / 288.7 MB, free: 1.605 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 -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: 3.0957484799437225]