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.001599/0.001599, allocations: 108.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001796/0.001796, allocations: 213.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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.449/1.449, allocations: 230.6 MB / 258.3 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001551/0.001551, allocations: 51.91 kB / 379 MB, free: 2.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2611, allocations: 53.35 MB / 432.4 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003859/0.2649, allocations: 2.058 MB / 434.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002334/0.2672, allocations: 1.302 MB / 435.7 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2674, allocations: 3.938 kB / 435.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000955/0.2683, allocations: 319.1 kB / 436 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005944/0.2689, allocations: 263.1 kB / 436.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005855/0.2695, allocations: 234.3 kB / 436.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004393/0.27, allocations: 355 kB / 436.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.2701, allocations: 44.89 kB / 436.9 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002091/0.2703, allocations: 151.5 kB / 437.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.2705, allocations: 163.3 kB / 437.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.674e-05/0.2706, allocations: 20 kB / 437.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001984/0.2708, allocations: 91.92 kB / 437.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.2709, allocations: 91.67 kB / 437.4 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.271, allocations: 127.2 kB / 437.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004899/0.2715, allocations: 372.7 kB / 437.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2715, allocations: 0 / 437.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2715, allocations: 4 kB / 437.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2715, allocations: 0 / 437.9 MB, free: 1.344 MB / 334.1 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.001051/0.2726, allocations: 0.6049 MB / 438.5 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.2726, allocations: 12.03 kB / 438.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.682e-05/0.2727, allocations: 44.62 kB / 438.6 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004591/0.2732, allocations: 272.8 kB / 438.9 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.2732, allocations: 12.38 kB / 438.9 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.2732, allocations: 12.12 kB / 438.9 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.2735, allocations: 149.7 kB / 439 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2735, allocations: 0 / 439 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.2736, allocations: 11.94 kB / 439 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.2736, allocations: 0 / 439 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.2737, allocations: 67.95 kB / 439.1 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007772/0.2745, allocations: 471.5 kB / 439.6 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.2748, allocations: 122.8 kB / 439.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.2749, allocations: 44.84 kB / 439.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.275, allocations: 3.938 kB / 439.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002431/0.2752, allocations: 119.3 kB / 439.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.2752, allocations: 0 / 439.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005101/0.2757, allocations: 217.3 kB / 440.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.823e-05/0.2758, allocations: 106.8 kB / 440.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005549/0.2764, allocations: 453.6 kB / 440.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.2764, allocations: 37.64 kB / 440.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.2765, allocations: 172 kB / 440.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.911e-05/0.2766, allocations: 47.67 kB / 440.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.366e-05/0.2767, allocations: 45.7 kB / 440.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.2768, allocations: 338.8 kB / 441.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.277, allocations: 43.97 kB / 441.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.2771, allocations: 97.98 kB / 441.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.2773, allocations: 116.2 kB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2773, allocations: 0 / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003356/0.2777, allocations: 180 kB / 441.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.2777, allocations: 14.28 kB / 441.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.2777, allocations: 3.984 kB / 441.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.2777, allocations: 64 / 441.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.2778, allocations: 28 kB / 441.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.2778, allocations: 3.984 kB / 441.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.891e-05/0.2779, allocations: 15.95 kB / 441.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.278, allocations: 4 kB / 441.7 MB, free: 13.29 MB / 350.1 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.000189/0.2781, allocations: 179.4 kB / 441.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.94e-05/0.2782, allocations: 31.75 kB / 441.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003872/0.2786, allocations: 192.5 kB / 442.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2786, allocations: 3.984 kB / 442.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.2786, allocations: 0 / 442.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2786, allocations: 3.938 kB / 442.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003053/0.2789, allocations: 284.5 kB / 442.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2789, allocations: 0 / 442.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.861e-05/0.2789, allocations: 11.98 kB / 442.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.2789, allocations: 3.938 kB / 442.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.279, allocations: 4 kB / 442.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.279, allocations: 0 / 442.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.279, allocations: 0 / 442.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003515/0.2793, allocations: 208.9 kB / 442.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.056e-05/0.2794, allocations: 35.7 kB / 442.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/0.2794, allocations: 11.92 kB / 442.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-05/0.2795, allocations: 8 kB / 442.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.506e-05/0.2796, allocations: 15.97 kB / 442.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.2796, allocations: 4 kB / 442.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003892/0.28, allocations: 335.1 kB / 443 MB, free: 11.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.28, allocations: 0 / 443 MB, free: 11.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.2802, allocations: 55.94 kB / 443.1 MB, free: 11.86 MB / 350.1 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 (15): * Single equations (assignments): 11 * 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.001538/0.2818, allocations: 430.6 kB / 443.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003127/0.2821, allocations: 119.5 kB / 443.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2821, allocations: 0 / 443.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001372/0.2822, allocations: 56.05 kB / 443.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.2827, allocations: 80.97 kB / 443.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008971/0.2836, allocations: 0.5405 MB / 444.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/0.284, allocations: 0.7792 MB / 445.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.441e-05/0.2841, allocations: 31.42 kB / 445.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2841, allocations: 4 kB / 445.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of Templates: time 0.007426/0.2915, allocations: 4.302 MB / 449.4 MB, free: 5.645 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.654534447006881]