Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001614/0.001614, allocations: 103.9 kB / 19.75 MB, free: 2.656 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.001805/0.001805, allocations: 192.5 kB / 22.93 MB, free: 5.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 207.6 MB / 233.5 MB, free: 10.98 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 54.11 kB / 345.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3324, allocations: 49.12 MB / 394.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003777/0.3362, allocations: 2.006 MB / 396.5 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.338, allocations: 1.08 MB / 397.6 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.3382, allocations: 9.281 kB / 397.6 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001073/0.3393, allocations: 305.5 kB / 397.9 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005041/0.3398, allocations: 209.6 kB / 398.1 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007387/0.3405, allocations: 257.1 kB / 398.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004857/0.341, allocations: 337.3 kB / 398.7 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.3411, allocations: 39.73 kB / 398.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.3414, allocations: 145 kB / 398.9 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.3416, allocations: 166.5 kB / 399 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.925e-05/0.3417, allocations: 17.5 kB / 399 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.3419, allocations: 79.53 kB / 399.1 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.342, allocations: 89.58 kB / 399.2 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.3422, allocations: 119.9 kB / 399.3 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000553/0.3427, allocations: 358 kB / 399.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3427, allocations: 0 / 399.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3427, allocations: 0 / 399.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.3427, allocations: 0 / 399.7 MB, free: 6.402 MB / 318.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.001011/0.3437, allocations: 0.67 MB / 400.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3438, allocations: 13.72 kB / 400.4 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.398e-05/0.3439, allocations: 37.14 kB / 400.4 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004188/0.3443, allocations: 330.1 kB / 400.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.3443, allocations: 10.44 kB / 400.7 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.3443, allocations: 20 kB / 400.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.3447, allocations: 149.9 kB / 400.9 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.3447, allocations: 3.938 kB / 400.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.3447, allocations: 2.562 kB / 400.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.3447, allocations: 2.281 kB / 400.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.3449, allocations: 66.92 kB / 401 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007758/0.3457, allocations: 499.4 kB / 401.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.346, allocations: 131.7 kB / 401.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.3461, allocations: 44.11 kB / 401.6 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.03e-05/0.3462, allocations: 6.312 kB / 401.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.3464, allocations: 105.5 kB / 401.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.3464, allocations: 4 kB / 401.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005808/0.347, allocations: 216.2 kB / 402 MB, free: 4.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.3471, allocations: 106.1 kB / 402.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005808/0.3476, allocations: 436.6 kB / 402.5 MB, free: 4.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.3477, allocations: 31.83 kB / 402.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.3478, allocations: 170.2 kB / 402.7 MB, free: 4.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.472e-05/0.3478, allocations: 41.28 kB / 402.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-05/0.3479, allocations: 44.61 kB / 402.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.208e-05/0.348, allocations: 341.5 kB / 403.1 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.3481, allocations: 44.48 kB / 403.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.3483, allocations: 103 kB / 403.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.3485, allocations: 115.2 kB / 403.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3485, allocations: 0 / 403.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000326/0.3488, allocations: 180.9 kB / 403.5 MB, free: 3.586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3488, allocations: 9.625 kB / 403.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3488, allocations: 1.984 kB / 403.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.3489, allocations: 1.094 kB / 403.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.349, allocations: 21.17 kB / 403.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.349, allocations: 10.84 kB / 403.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.821e-05/0.3491, allocations: 20.38 kB / 403.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.3491, allocations: 6.359 kB / 403.6 MB, free: 3.562 MB / 318.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.0001488/0.3493, allocations: 179.8 kB / 403.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.458e-05/0.3493, allocations: 32.84 kB / 403.8 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004289/0.3497, allocations: 187.3 kB / 404 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3497, allocations: 8.125 kB / 404 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3497, allocations: 0 / 404 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.3497, allocations: 0.8438 kB / 404 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003203/0.3501, allocations: 299.5 kB / 404.3 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3501, allocations: 0 / 404.3 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.101e-05/0.3501, allocations: 8.781 kB / 404.3 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3501, allocations: 5.594 kB / 404.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.3501, allocations: 1.984 kB / 404.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.3501, allocations: 1.797 kB / 404.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.3501, allocations: 0 / 404.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003566/0.3505, allocations: 207.8 kB / 404.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.794e-05/0.3506, allocations: 107.7 kB / 404.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.628e-05/0.3506, allocations: 10.88 kB / 404.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.604e-05/0.3507, allocations: 7.078 kB / 404.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.205e-05/0.3508, allocations: 19.59 kB / 404.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.3508, allocations: 5.5 kB / 404.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003866/0.3512, allocations: 314.8 kB / 405 MB, free: 2.645 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3512, allocations: 4 kB / 405 MB, free: 2.641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003158/0.3515, allocations: 54.62 kB / 405 MB, free: 2.629 MB / 318.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.001546/0.353, allocations: 429.7 kB / 405.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.3534, allocations: 115.1 kB / 405.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3534, allocations: 4 kB / 405.6 MB, free: 2.223 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3535, allocations: 53.8 kB / 405.6 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004586/0.354, allocations: 75.45 kB / 405.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000961/0.3549, allocations: 0.4965 MB / 406.2 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.3552, allocations: 0.774 MB / 407 MB, free: 1.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.3554, allocations: 44.52 kB / 407 MB, free: 1.172 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.22e-05/0.3555, allocations: 27.19 kB / 407 MB, free: 1.164 MB / 318.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3555, allocations: 0 / 407 MB, free: 1.164 MB / 318.1 MB Notification: Performance of Templates: time 0.009535/0.365, allocations: 3.896 MB / 410.9 MB, free: 15.67 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.808604411780834]