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.001749/0.001749, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.00222/0.00222, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.557/1.557, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.001586/0.001586, allocations: 47.94 kB / 373.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1107, allocations: 53.34 MB / 426.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003458/0.1142, allocations: 2.031 MB / 428.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0022/0.1164, allocations: 1.278 MB / 430.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.1165, allocations: 7.938 kB / 430.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000885/0.1174, allocations: 311.1 kB / 430.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005831/0.118, allocations: 247.1 kB / 430.7 MB, free: 440 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005643/0.1185, allocations: 230.5 kB / 430.9 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2168/0.3354, allocations: 355.8 kB / 431.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.3356, allocations: 39.8 kB / 431.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.3358, allocations: 153 kB / 431.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.3361, allocations: 164.9 kB / 431.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.121e-05/0.3361, allocations: 18.34 kB / 431.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002494/0.3363, allocations: 87.69 kB / 431.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.3365, allocations: 86.05 kB / 431.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.3366, allocations: 136.8 kB / 431.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004649/0.3371, allocations: 367 kB / 432.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3371, allocations: 2.797 kB / 432.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3371, allocations: 0.5312 kB / 432.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.3371, allocations: 0.7188 kB / 432.3 MB, free: 8.148 MB / 350.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.0009323/0.338, allocations: 0.6767 MB / 432.9 MB, free: 7.586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.3381, allocations: 10.53 kB / 433 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.115e-05/0.3381, allocations: 37.83 kB / 433 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003785/0.3385, allocations: 343.9 kB / 433.3 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.3385, allocations: 11.75 kB / 433.3 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.354e-05/0.3386, allocations: 13.33 kB / 433.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.3388, allocations: 149 kB / 433.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3388, allocations: 0 / 433.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.3389, allocations: 9.094 kB / 433.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3389, allocations: 2.188 kB / 433.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.339, allocations: 65.05 kB / 433.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005987/0.3396, allocations: 0.4921 MB / 434.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003289/0.34, allocations: 124.2 kB / 434.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.3401, allocations: 49.3 kB / 434.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.3401, allocations: 1.219 kB / 434.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/0.3403, allocations: 112.8 kB / 434.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.3403, allocations: 1.125 kB / 434.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004892/0.3408, allocations: 225.2 kB / 434.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.3409, allocations: 105.2 kB / 434.7 MB, free: 6.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004688/0.3413, allocations: 454.8 kB / 435.1 MB, free: 6.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.3414, allocations: 34.08 kB / 435.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.3415, allocations: 170.5 kB / 435.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.798e-05/0.3415, allocations: 46.28 kB / 435.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.344e-05/0.3416, allocations: 40.83 kB / 435.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.089e-05/0.3416, allocations: 347.9 kB / 435.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.3417, allocations: 44.3 kB / 435.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.3419, allocations: 101 kB / 435.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.3421, allocations: 107.4 kB / 436 MB, free: 6.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3421, allocations: 4 kB / 436 MB, free: 6.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003503/0.3425, allocations: 183.8 kB / 436.2 MB, free: 6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3425, allocations: 5.656 kB / 436.2 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3425, allocations: 2.219 kB / 436.2 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.3425, allocations: 8.734 kB / 436.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.3426, allocations: 23.89 kB / 436.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.3427, allocations: 2.375 kB / 436.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.3428, allocations: 16.69 kB / 436.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.3428, allocations: 5.516 kB / 436.2 MB, free: 5.992 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.0001705/0.343, allocations: 173.2 kB / 436.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.287e-05/0.343, allocations: 30.48 kB / 436.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.67e-05/0.3431, allocations: 41.77 kB / 436.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3431, allocations: 2.984 kB / 436.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3431, allocations: 0 / 436.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.3431, allocations: 1.156 kB / 436.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002748/0.3434, allocations: 308.4 kB / 436.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3434, allocations: 2.031 kB / 436.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.3434, allocations: 12.62 kB / 436.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3434, allocations: 0 / 436.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.3434, allocations: 11.2 kB / 436.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.3434, allocations: 6.812 kB / 436.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3434, allocations: 0.625 kB / 436.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003624/0.3438, allocations: 206.1 kB / 437 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.824e-05/0.3439, allocations: 104.8 kB / 437.1 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.42e-05/0.3439, allocations: 10.89 kB / 437.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.828e-05/0.344, allocations: 11.56 kB / 437.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.659e-05/0.3441, allocations: 14.86 kB / 437.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.3441, allocations: 8.75 kB / 437.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003443/0.3444, allocations: 330.9 kB / 437.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3444, allocations: 1.344 kB / 437.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.3447, allocations: 57.84 kB / 437.5 MB, free: 5.359 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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * 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.001567/0.3463, allocations: 435.3 kB / 438 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.3466, allocations: 109 kB / 438.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3466, allocations: 1.125 kB / 438.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.3468, allocations: 52.56 kB / 438.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.3472, allocations: 89.58 kB / 438.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007844/0.348, allocations: 0.5029 MB / 438.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.3482, allocations: 0.7858 MB / 439.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.3483, allocations: 43.34 kB / 439.5 MB, free: 4.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.237e-05/0.3484, allocations: 28.17 kB / 439.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3484, allocations: 0 / 439.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of Templates: time 0.01218/0.3606, allocations: 3.924 MB / 443.5 MB, free: 3.914 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/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: 4.8031388856470585]