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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009386/0.0009384, allocations: 95.39 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.646e-05/1.647e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09125/0.09128, allocations: 50.41 MB / 387.4 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3097/0.401, allocations: 79.6 MB / 467 MB, free: 15.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/0.4014, allocations: 71.97 kB / 467.1 MB, free: 15.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02506/0.4264, allocations: 9.166 MB / 476.3 MB, free: 6.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4265, allocations: 0 / 476.3 MB, free: 6.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.795e-05/0.4265, allocations: 8 kB / 476.3 MB, free: 6.012 MB / 346.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.0008015/0.4273, allocations: 0.5689 MB / 476.9 MB, free: 5.383 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.4274, allocations: 11.97 kB / 476.9 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.903e-05/0.4275, allocations: 39.48 kB / 476.9 MB, free: 5.332 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005841/0.4281, allocations: 328 kB / 477.2 MB, free: 4.973 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.4281, allocations: 4 kB / 477.2 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.931e-05/0.4281, allocations: 8 kB / 477.2 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001686/0.4283, allocations: 75.91 kB / 477.3 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.4286, allocations: 126.7 kB / 477.4 MB, free: 4.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.4286, allocations: 0 / 477.4 MB, free: 4.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.4286, allocations: 7.953 kB / 477.4 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.4286, allocations: 0 / 477.4 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007999/0.4294, allocations: 488.9 kB / 477.9 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.4296, allocations: 122.7 kB / 478 MB, free: 4.098 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.137e-05/0.4297, allocations: 44.86 kB / 478.1 MB, free: 4.051 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.4298, allocations: 3.984 kB / 478.1 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.4299, allocations: 105.6 kB / 478.2 MB, free: 3.934 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.43, allocations: 0 / 478.2 MB, free: 3.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003279/0.4303, allocations: 161.3 kB / 478.3 MB, free: 3.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.4304, allocations: 102.8 kB / 478.4 MB, free: 3.645 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000426/0.4308, allocations: 377.1 kB / 478.8 MB, free: 3.273 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.4308, allocations: 33.7 kB / 478.8 MB, free: 3.234 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.4309, allocations: 175.8 kB / 479 MB, free: 3.059 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.813e-05/0.431, allocations: 35.55 kB / 479.1 MB, free: 3.023 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.319e-05/0.431, allocations: 0 / 479.1 MB, free: 3.023 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4311, allocations: 346.8 kB / 479.4 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.587e-05/0.4312, allocations: 39.98 kB / 479.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.4313, allocations: 97.95 kB / 479.5 MB, free: 2.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.553e-05/0.4314, allocations: 43.97 kB / 479.6 MB, free: 2.477 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.4314, allocations: 0 / 479.6 MB, free: 2.477 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002363/0.4317, allocations: 158.7 kB / 479.7 MB, free: 2.316 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.4317, allocations: 11.94 kB / 479.7 MB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.4317, allocations: 0 / 479.7 MB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.4317, allocations: 0 / 479.7 MB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.4319, allocations: 31.98 kB / 479.8 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.4319, allocations: 0 / 479.8 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.432, allocations: 19.83 kB / 479.8 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.432, allocations: 8 kB / 479.8 MB, free: 2.246 MB / 346.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 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.4321, allocations: 118.7 kB / 479.9 MB, free: 2.125 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.531e-05/0.4322, allocations: 31.62 kB / 479.9 MB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003188/0.4325, allocations: 193.8 kB / 480.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.4325, allocations: 0 / 480.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4325, allocations: 0 / 480.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.4325, allocations: 0 / 480.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.4328, allocations: 286 kB / 480.4 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.4328, allocations: 0 / 480.4 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.022e-05/0.4329, allocations: 12.03 kB / 480.4 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.4329, allocations: 7.984 kB / 480.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.4329, allocations: 0 / 480.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4329, allocations: 0 / 480.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4329, allocations: 0 / 480.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002685/0.4332, allocations: 210 kB / 480.6 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.4333, allocations: 124.7 kB / 480.8 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.4334, allocations: 4 kB / 480.8 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.729e-05/0.4335, allocations: 11.98 kB / 480.8 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.171e-05/0.4336, allocations: 15.97 kB / 480.8 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.4336, allocations: 4 kB / 480.8 MB, free: 1.164 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003264/0.4339, allocations: 292.6 kB / 481.1 MB, free: 0.875 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4339, allocations: 8 kB / 481.1 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000334/0.4343, allocations: 64.11 kB / 481.1 MB, free: 0.8047 MB / 346.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.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000876/0.4352, allocations: 363.6 kB / 481.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002618/0.4354, allocations: 115.9 kB / 481.6 MB, free: 424 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4354, allocations: 4.125 kB / 481.6 MB, free: 420 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.881e-05/0.4356, allocations: 67.84 kB / 481.7 MB, free: 352 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.4359, allocations: 62.5 kB / 481.7 MB, free: 292 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000665/0.4366, allocations: 371 kB / 482.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.437, allocations: 0.7834 MB / 482.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001351/0.4372, allocations: 50.03 kB / 482.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.6e-05/0.4372, allocations: 31.42 kB / 483 MB, free: 15.01 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4372, allocations: 4 kB / 483 MB, free: 15 MB / 362.7 MB Notification: Performance of Templates: time 0.007017/0.4443, allocations: 3.523 MB / 486.5 MB, free: 11.5 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches