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.0009919/0.0009919, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0008754/0.0008754, allocations: 171.9 kB / 24.92 MB, free: 8.723 MB / 18.57 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 0.9461/0.9461, allocations: 177.1 MB / 205.3 MB, free: 5.113 MB / 186.7 MB " [Timeout remaining time 179] 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 1.603e-06/1.603e-06, allocations: 0 / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.609e-05, allocations: 2.312 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003445/0.003471, allocations: 2.088 MB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.005224, allocations: 1.277 MB / 276.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.005355, allocations: 4 kB / 276.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007972/0.006152, allocations: 303 kB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004378/0.00659, allocations: 270.9 kB / 277.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004536/0.007044, allocations: 219.4 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004034/0.007447, allocations: 359 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.007583, allocations: 54.84 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002558/0.007839, allocations: 187.5 kB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.008026, allocations: 143.6 kB / 278.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.076e-05/0.008057, allocations: 20 kB / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.008259, allocations: 99.78 kB / 278.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.145e-05/0.00835, allocations: 87.69 kB / 278.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.815e-05/0.008428, allocations: 71.78 kB / 278.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003403/0.008769, allocations: 263 kB / 278.9 MB, free: 11.72 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.008773, allocations: 0 / 278.9 MB, free: 11.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.008774, allocations: 0 / 278.9 MB, free: 11.72 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.008778, allocations: 0 / 278.9 MB, free: 11.72 MB / 266.7 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.0006443/0.009423, allocations: 0.5683 MB / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.009459, allocations: 16.03 kB / 279.5 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.409e-05/0.009513, allocations: 28.91 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.009819, allocations: 252.8 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.009841, allocations: 12.36 kB / 279.8 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.009858, allocations: 16.31 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.01002, allocations: 92.27 kB / 279.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.01004, allocations: 3.938 kB / 279.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.01005, allocations: 0 / 279.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.01006, allocations: 4 kB / 279.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.391e-05/0.01011, allocations: 35.83 kB / 279.9 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004402/0.01055, allocations: 269.6 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/0.01069, allocations: 121.3 kB / 280.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.259e-05/0.01073, allocations: 20.84 kB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.01074, allocations: 11.94 kB / 280.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/0.01089, allocations: 90.16 kB / 280.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.114e-06/0.0109, allocations: 0 / 280.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000201/0.0111, allocations: 109.6 kB / 280.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.01112, allocations: 55.41 kB / 280.6 MB, free: 9.902 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.01139, allocations: 333 kB / 280.9 MB, free: 9.562 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.01141, allocations: 33.7 kB / 280.9 MB, free: 9.523 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.985e-05/0.01149, allocations: 132.9 kB / 281.1 MB, free: 9.391 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.888e-05/0.01153, allocations: 39.69 kB / 281.1 MB, free: 9.352 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.363e-05/0.01159, allocations: 49.66 kB / 281.1 MB, free: 9.297 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.608e-05/0.01168, allocations: 346.7 kB / 281.5 MB, free: 8.949 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.773e-05/0.01171, allocations: 18.81 kB / 281.5 MB, free: 8.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.261e-05/0.01177, allocations: 107.7 kB / 281.6 MB, free: 8.797 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.729e-05/0.01186, allocations: 75.39 kB / 281.7 MB, free: 8.715 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.01186, allocations: 3.984 kB / 281.7 MB, free: 8.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001602/0.01202, allocations: 108.3 kB / 281.8 MB, free: 8.598 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.01204, allocations: 8 kB / 281.8 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.01204, allocations: 0 / 281.8 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.01205, allocations: 0 / 281.8 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.185e-05/0.01213, allocations: 23.98 kB / 281.8 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.026e-06/0.01214, allocations: 4.062 kB / 281.8 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.732e-05/0.01219, allocations: 19.95 kB / 281.8 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/0.0122, allocations: 11.88 kB / 281.9 MB, free: 8.531 MB / 266.7 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 8.046e-05/0.01228, allocations: 130.7 kB / 282 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.0123, allocations: 15.98 kB / 282 MB, free: 8.379 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00014/0.01244, allocations: 124.3 kB / 282.1 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.01245, allocations: 4 kB / 282.1 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.01245, allocations: 0 / 282.1 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.01245, allocations: 0 / 282.1 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.01258, allocations: 161.6 kB / 282.3 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.01258, allocations: 0 / 282.3 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.061e-05/0.01261, allocations: 8 kB / 282.3 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.01262, allocations: 4 kB / 282.3 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.01262, allocations: 4 kB / 282.3 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.01263, allocations: 0 / 282.3 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.01263, allocations: 3.984 kB / 282.3 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000112/0.01274, allocations: 136.2 kB / 282.4 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.889e-05/0.01277, allocations: 31.75 kB / 282.5 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.01279, allocations: 4 kB / 282.5 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.995e-05/0.01283, allocations: 15.98 kB / 282.5 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.01287, allocations: 15.97 kB / 282.5 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.01288, allocations: 4 kB / 282.5 MB, free: 7.828 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001147/0.013, allocations: 143.6 kB / 282.6 MB, free: 7.688 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.013, allocations: 0 / 282.6 MB, free: 7.688 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001761/0.01318, allocations: 55.92 kB / 282.7 MB, free: 7.633 MB / 266.7 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 (17): * Single equations (assignments): 13 * 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.00105/0.01422, allocations: 0.5072 MB / 283.2 MB, free: 7.348 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.01435, allocations: 76.75 kB / 283.3 MB, free: 7.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.01436, allocations: 4 kB / 283.3 MB, free: 7.266 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.251e-05/0.01441, allocations: 47.97 kB / 283.3 MB, free: 7.219 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.01462, allocations: 89.2 kB / 283.4 MB, free: 7.141 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004987/0.01512, allocations: 452 kB / 283.9 MB, free: 6.672 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.053e-05/0.01517, allocations: 92.3 kB / 283.9 MB, free: 6.562 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.401e-05/0.01525, allocations: 50.3 kB / 284 MB, free: 6.516 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.01536, allocations: 103.3 kB / 284.1 MB, free: 6.414 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01536, allocations: 0 / 284.1 MB, free: 6.414 MB / 266.7 MB Notification: Performance of Templates: time 0.006387/0.02174, allocations: 4.431 MB / 288.5 MB, free: 2.055 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5571351242251694]