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.001139/0.001139, allocations: 85.91 kB / 22.21 MB, free: 2.285 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.001038/0.001038, allocations: 159.2 kB / 25.61 MB, free: 8.582 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 0.9217/0.9217, allocations: 177 MB / 205.9 MB, free: 4.457 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 1.603e-06/1.603e-06, allocations: 3.938 kB / 274.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.382e-05/1.542e-05, allocations: 6.031 kB / 274.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002319/0.002334, allocations: 2.03 MB / 276.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.003782, allocations: 1.246 MB / 277.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.003885, allocations: 9.719 kB / 277.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006206/0.004506, allocations: 304.4 kB / 277.7 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003827/0.004889, allocations: 269.4 kB / 277.9 MB, free: 464 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004081/0.005297, allocations: 229.1 kB / 278.2 MB, free: 236 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.005611, allocations: 371.5 kB / 278.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.005725, allocations: 41.56 kB / 278.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.005892, allocations: 191.5 kB / 278.8 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.006026, allocations: 139.7 kB / 278.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.006052, allocations: 16 kB / 278.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.006185, allocations: 95.84 kB / 279 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.45e-05/0.00628, allocations: 91.67 kB / 279.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.687e-05/0.006347, allocations: 75.72 kB / 279.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.006614, allocations: 262.9 kB / 279.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.215e-06/0.006616, allocations: 0 / 279.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.006617, allocations: 0 / 279.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.006622, allocations: 4 kB / 279.4 MB, free: 14.96 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.0006191/0.007241, allocations: 0.7008 MB / 280.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.007274, allocations: 16.03 kB / 280.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.768e-05/0.007332, allocations: 44.7 kB / 280.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.007572, allocations: 279.6 kB / 280.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.007587, allocations: 4.375 kB / 280.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.007602, allocations: 12.38 kB / 280.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.00772, allocations: 94.12 kB / 280.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-06/0.007725, allocations: 192 / 280.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.007734, allocations: 384 / 280.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.00774, allocations: 11.92 kB / 280.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.915e-05/0.00779, allocations: 37.03 kB / 280.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003686/0.008158, allocations: 407.9 kB / 281 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.008286, allocations: 95.19 kB / 281.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.172e-05/0.008318, allocations: 27.67 kB / 281.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.008329, allocations: 4 kB / 281.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001011/0.008431, allocations: 89 kB / 281.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.008432, allocations: 0 / 281.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002099/0.008642, allocations: 171.5 kB / 281.4 MB, free: 12.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.527e-05/0.008667, allocations: 59.39 kB / 281.5 MB, free: 12.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.00889, allocations: 394.5 kB / 281.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.008907, allocations: 33.7 kB / 281.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.009106, allocations: 222.7 kB / 282.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.009138, allocations: 47.66 kB / 282.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.253e-05/0.00919, allocations: 47.34 kB / 282.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.009314, allocations: 0.5234 MB / 282.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.563e-05/0.00934, allocations: 19.98 kB / 282.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.453e-05/0.009404, allocations: 119.7 kB / 282.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.746e-05/0.009472, allocations: 75.02 kB / 282.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.009474, allocations: 0 / 282.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001365/0.009611, allocations: 144.2 kB / 283.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.009624, allocations: 8 kB / 283.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.009628, allocations: 0 / 283.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.383e-06/0.009635, allocations: 0 / 283.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.327e-05/0.009709, allocations: 31.92 kB / 283.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.535e-06/0.009711, allocations: 0 / 283.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.207e-05/0.009763, allocations: 19.95 kB / 283.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.009771, allocations: 8 kB / 283.1 MB, free: 11.02 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.12e-05/0.009863, allocations: 174.5 kB / 283.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.02e-05/0.009893, allocations: 31.81 kB / 283.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001757/0.01007, allocations: 154.5 kB / 283.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.01007, allocations: 4 kB / 283.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.01007, allocations: 0 / 283.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.01008, allocations: 0 / 283.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.01023, allocations: 197 kB / 283.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.01023, allocations: 0 / 283.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.915e-05/0.01026, allocations: 12 kB / 283.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.01026, allocations: 0 / 283.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.01027, allocations: 11.98 kB / 283.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.01027, allocations: 0 / 283.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01028, allocations: 0 / 283.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001556/0.01043, allocations: 196 kB / 283.9 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.039e-05/0.01046, allocations: 35.7 kB / 283.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.01049, allocations: 7.984 kB / 283.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.351e-05/0.01053, allocations: 12 kB / 283.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.862e-05/0.01057, allocations: 19.97 kB / 284 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.01058, allocations: 4 kB / 284 MB, free: 10.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001257/0.01071, allocations: 259 kB / 284.2 MB, free: 9.859 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01071, allocations: 3.938 kB / 284.2 MB, free: 9.855 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001759/0.01088, allocations: 55.92 kB / 284.3 MB, free: 9.801 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.0008058/0.01169, allocations: 399.8 kB / 284.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001251/0.01181, allocations: 89.09 kB / 284.8 MB, free: 9.441 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.01181, allocations: 0 / 284.8 MB, free: 9.441 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.002e-05/0.01186, allocations: 43.67 kB / 284.8 MB, free: 9.395 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.01212, allocations: 94.25 kB / 284.9 MB, free: 9.305 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004336/0.01255, allocations: 456.2 kB / 285.3 MB, free: 8.828 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.027e-05/0.0126, allocations: 100.2 kB / 285.4 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.497e-05/0.01266, allocations: 34.27 kB / 285.5 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.01277, allocations: 122.2 kB / 285.6 MB, free: 8.559 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01278, allocations: 0 / 285.6 MB, free: 8.559 MB / 266.7 MB Notification: Performance of Templates: time 0.006192/0.01897, allocations: 4.503 MB / 290.1 MB, free: 4.109 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.0073187961243093]