Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 184.3 kB / 23.71 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.593/1.593, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 51.92 kB / 370.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2687, allocations: 52.18 MB / 423.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004664/0.2734, allocations: 2.035 MB / 425.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.2761, allocations: 1.157 MB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001744/0.2763, allocations: 3.938 kB / 426.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001248/0.2775, allocations: 326 kB / 426.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006777/0.2782, allocations: 203.3 kB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.2792, allocations: 298.2 kB / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005947/0.2798, allocations: 335.1 kB / 427.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.28, allocations: 44.5 kB / 427.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002633/0.2803, allocations: 151.4 kB / 427.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003362/0.2806, allocations: 155.4 kB / 427.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.965e-05/0.2807, allocations: 16 kB / 427.8 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002981/0.281, allocations: 87.88 kB / 427.9 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.2812, allocations: 95.67 kB / 428 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001952/0.2813, allocations: 127.2 kB / 428.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007152/0.2821, allocations: 351.8 kB / 428.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2821, allocations: 0 / 428.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2821, allocations: 3.938 kB / 428.4 MB, free: 9.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.2821, allocations: 0 / 428.4 MB, free: 9.336 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.001577/0.2837, allocations: 0.5933 MB / 429 MB, free: 8.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.2837, allocations: 12.03 kB / 429.1 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.2839, allocations: 32.7 kB / 429.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006846/0.2846, allocations: 278.2 kB / 429.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.244e-05/0.2846, allocations: 8 kB / 429.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.2846, allocations: 12 kB / 429.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004422/0.2851, allocations: 140.2 kB / 429.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.2851, allocations: 4 kB / 429.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.2851, allocations: 0 / 429.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.2851, allocations: 4 kB / 429.5 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000256/0.2854, allocations: 83.34 kB / 429.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009978/0.2864, allocations: 463.3 kB / 430.1 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004604/0.2868, allocations: 122.8 kB / 430.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.287, allocations: 48.83 kB / 430.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.006e-05/0.287, allocations: 7.938 kB / 430.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002891/0.2873, allocations: 111.3 kB / 430.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.054e-06/0.2873, allocations: 0 / 430.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007113/0.288, allocations: 213.4 kB / 430.5 MB, free: 7.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.231e-05/0.2881, allocations: 110.8 kB / 430.7 MB, free: 6.953 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007456/0.2889, allocations: 432.4 kB / 431.1 MB, free: 6.523 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.2889, allocations: 29.7 kB / 431.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.2891, allocations: 172 kB / 431.3 MB, free: 6.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.908e-05/0.2892, allocations: 39.73 kB / 431.3 MB, free: 6.277 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.359e-05/0.2892, allocations: 41.7 kB / 431.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.2894, allocations: 342.8 kB / 431.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.2896, allocations: 51.86 kB / 431.7 MB, free: 5.836 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.2898, allocations: 97.98 kB / 431.8 MB, free: 5.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.2901, allocations: 106.3 kB / 431.9 MB, free: 5.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.2901, allocations: 7.938 kB / 431.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000482/0.2906, allocations: 177.3 kB / 432.1 MB, free: 5.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.2906, allocations: 7.938 kB / 432.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.2906, allocations: 8 kB / 432.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.2906, allocations: 0 / 432.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.2908, allocations: 27.98 kB / 432.2 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.2908, allocations: 0 / 432.2 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001629/0.291, allocations: 19.88 kB / 432.2 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.291, allocations: 8.062 kB / 432.2 MB, free: 5.352 MB / 334.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.0002384/0.2913, allocations: 171.5 kB / 432.4 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.918e-05/0.2913, allocations: 39.78 kB / 432.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005358/0.2919, allocations: 184.4 kB / 432.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.2919, allocations: 4 kB / 432.6 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.2919, allocations: 0 / 432.6 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.2919, allocations: 3.984 kB / 432.6 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004126/0.2923, allocations: 272.5 kB / 432.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2923, allocations: 4 kB / 432.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.978e-05/0.2924, allocations: 15.92 kB / 432.9 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.2924, allocations: 0 / 432.9 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.2924, allocations: 4 kB / 432.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.2924, allocations: 0 / 432.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2924, allocations: 4 kB / 432.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004661/0.2929, allocations: 203.7 kB / 433.1 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.449e-05/0.2929, allocations: 31.75 kB / 433.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.779e-05/0.293, allocations: 11.98 kB / 433.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.2931, allocations: 4 kB / 433.1 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.099e-05/0.2932, allocations: 19.97 kB / 433.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-05/0.2932, allocations: 11.88 kB / 433.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005193/0.2937, allocations: 315 kB / 433.5 MB, free: 4 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2937, allocations: 0 / 433.5 MB, free: 4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004539/0.2942, allocations: 55.89 kB / 433.5 MB, free: 3.945 MB / 334.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.00197/0.2962, allocations: 420.7 kB / 433.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004598/0.2966, allocations: 115.5 kB / 434 MB, free: 3.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2966, allocations: 0 / 434 MB, free: 3.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.2968, allocations: 55.91 kB / 434.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005976/0.2974, allocations: 73.33 kB / 434.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.2986, allocations: 488.2 kB / 434.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.2992, allocations: 0.779 MB / 435.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001817/0.2994, allocations: 46.25 kB / 435.5 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.774e-05/0.2995, allocations: 31.44 kB / 435.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2995, allocations: 0 / 435.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of Templates: time 0.01267/0.3122, allocations: 3.945 MB / 439.4 MB, free: 14.15 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.742975597269833]