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.001444/0.001444, allocations: 113 kB / 19.04 MB, free: 3.254 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.001355/0.001355, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.414/1.414, allocations: 225.6 MB / 250.8 MB, free: 13.31 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.001548/0.001548, allocations: 51.91 kB / 368.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3169, allocations: 52.14 MB / 420.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00375/0.3207, allocations: 2.038 MB / 422.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.3228, allocations: 1.157 MB / 424 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.3229, allocations: 3.938 kB / 424 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008494/0.3238, allocations: 303.2 kB / 424.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004474/0.3242, allocations: 199.3 kB / 424.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006925/0.3249, allocations: 297.3 kB / 424.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004043/0.3253, allocations: 335.2 kB / 425.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.3255, allocations: 36.39 kB / 425.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/0.3257, allocations: 143.5 kB / 425.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.3259, allocations: 159.3 kB / 425.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.3259, allocations: 20 kB / 425.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.3261, allocations: 83.88 kB / 425.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.3263, allocations: 87.75 kB / 425.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.3264, allocations: 127.2 kB / 425.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004861/0.3269, allocations: 359.7 kB / 426.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3269, allocations: 0 / 426.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3269, allocations: 0 / 426.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.3269, allocations: 0 / 426.2 MB, free: 9.777 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.001084/0.328, allocations: 0.6647 MB / 426.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.328, allocations: 12.03 kB / 426.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.05e-05/0.3281, allocations: 32.7 kB / 426.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.3285, allocations: 336.1 kB / 427.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.3286, allocations: 12 kB / 427.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.445e-05/0.3286, allocations: 12 kB / 427.2 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003111/0.3289, allocations: 148.1 kB / 427.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3289, allocations: 0 / 427.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.3289, allocations: 0 / 427.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3289, allocations: 4 kB / 427.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.3291, allocations: 63.97 kB / 427.4 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007544/0.3299, allocations: 0.4924 MB / 427.9 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.3302, allocations: 138.6 kB / 428 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.3303, allocations: 44.84 kB / 428.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.3303, allocations: 7.938 kB / 428.1 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002436/0.3306, allocations: 111.3 kB / 428.2 MB, free: 7.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.3306, allocations: 0 / 428.2 MB, free: 7.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005155/0.3311, allocations: 220.3 kB / 428.4 MB, free: 7.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/0.3312, allocations: 102.8 kB / 428.5 MB, free: 7.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005171/0.3317, allocations: 440.5 kB / 429 MB, free: 6.742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.3317, allocations: 29.7 kB / 429 MB, free: 6.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.3319, allocations: 168 kB / 429.1 MB, free: 6.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.449e-05/0.3319, allocations: 39.73 kB / 429.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.754e-05/0.332, allocations: 41.7 kB / 429.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.3322, allocations: 342.8 kB / 429.6 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.3323, allocations: 47.94 kB / 429.6 MB, free: 6.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.3324, allocations: 102 kB / 429.7 MB, free: 5.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.3326, allocations: 110.4 kB / 429.8 MB, free: 5.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3326, allocations: 4 kB / 429.8 MB, free: 5.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003345/0.333, allocations: 185.3 kB / 430 MB, free: 5.633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.333, allocations: 7.125 kB / 430 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.333, allocations: 0 / 430 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.333, allocations: 4 kB / 430 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.3331, allocations: 23.92 kB / 430 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.3331, allocations: 0 / 430 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.613e-05/0.3332, allocations: 19.89 kB / 430.1 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.3333, allocations: 4 kB / 430.1 MB, free: 5.578 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.0001893/0.3334, allocations: 183.5 kB / 430.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.759e-05/0.3335, allocations: 31.75 kB / 430.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004081/0.3339, allocations: 196 kB / 430.5 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.3339, allocations: 0 / 430.5 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3339, allocations: 0 / 430.5 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3339, allocations: 0 / 430.5 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003239/0.3342, allocations: 305.4 kB / 430.8 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3342, allocations: 0 / 430.8 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.855e-05/0.3343, allocations: 8 kB / 430.8 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3343, allocations: 4 kB / 430.8 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.3343, allocations: 4 kB / 430.8 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.3343, allocations: 7.922 kB / 430.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3343, allocations: 0 / 430.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003522/0.3346, allocations: 200.8 kB / 431 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.174e-05/0.3347, allocations: 108.9 kB / 431.1 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.645e-05/0.3348, allocations: 8 kB / 431.1 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.925e-05/0.3349, allocations: 15.98 kB / 431.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.735e-05/0.3349, allocations: 11.98 kB / 431.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.3349, allocations: 8 kB / 431.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003804/0.3353, allocations: 315 kB / 431.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3353, allocations: 3.938 kB / 431.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.3356, allocations: 51.89 kB / 431.5 MB, free: 4.039 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.0015/0.3371, allocations: 422.5 kB / 431.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003374/0.3374, allocations: 119.8 kB / 432 MB, free: 3.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3375, allocations: 0 / 432 MB, free: 3.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.3376, allocations: 51.97 kB / 432.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004255/0.338, allocations: 88.78 kB / 432.2 MB, free: 3.527 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008288/0.3388, allocations: 499.9 kB / 432.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004305/0.3393, allocations: 0.7792 MB / 433.4 MB, free: 2.207 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.3394, allocations: 42.27 kB / 433.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.919e-05/0.3395, allocations: 27.42 kB / 433.5 MB, free: 2.141 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3395, allocations: 0 / 433.5 MB, free: 2.141 MB / 334.1 MB Notification: Performance of Templates: time 0.008888/0.3483, allocations: 3.894 MB / 437.4 MB, free: 14.28 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.547812000848353]