Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001412/0.001412, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.805/1.805, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 100.3 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004012/0.0004013, allocations: 8 kB / 327 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3122, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1151/0.4274, allocations: 76.9 MB / 451.4 MB, free: 3.902 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.4276, allocations: 67.98 kB / 451.5 MB, free: 3.836 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01163/0.4393, allocations: 2.699 MB / 454.2 MB, free: 1.129 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4393, allocations: 0 / 454.2 MB, free: 1.129 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.4394, allocations: 4 kB / 454.2 MB, free: 1.125 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009744/0.4403, allocations: 0.496 MB / 454.7 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.4404, allocations: 8.031 kB / 454.7 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.767e-05/0.4405, allocations: 23.72 kB / 454.7 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.4408, allocations: 240.9 kB / 454.9 MB, free: 280 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.4408, allocations: 16.23 kB / 455 MB, free: 264 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.106e-05/0.4409, allocations: 15.98 kB / 455 MB, free: 248 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005003/0.4414, allocations: 191 kB / 455.2 MB, free: 40 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.4414, allocations: 3.938 kB / 455.2 MB, free: 36 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.4415, allocations: 8 kB / 455.2 MB, free: 28 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.4415, allocations: 8 kB / 455.2 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005234/0.442, allocations: 143.8 kB / 455.3 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.4435, allocations: 0.7937 MB / 456.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.444, allocations: 161 kB / 456.3 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.749e-05/0.4441, allocations: 4 kB / 456.3 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000371/0.4445, allocations: 147.7 kB / 456.4 MB, free: 14.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 4.328e-06/0.4445, allocations: 0 / 456.4 MB, free: 14.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008784/0.4454, allocations: 258 kB / 456.7 MB, free: 14.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.4455, allocations: 85.05 kB / 456.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002236/0.4457, allocations: 178.2 kB / 456.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.4457, allocations: 33.7 kB / 457 MB, free: 14.11 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.4459, allocations: 198.5 kB / 457.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.161e-05/0.4459, allocations: 51.48 kB / 457.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.713e-05/0.446, allocations: 0 / 457.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.4461, allocations: 326.8 kB / 457.5 MB, free: 13.53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.4463, allocations: 67.95 kB / 457.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002902/0.4466, allocations: 125.3 kB / 457.7 MB, free: 13.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.4469, allocations: 91.88 kB / 457.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.447, allocations: 0 / 457.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006721/0.4476, allocations: 229.5 kB / 458 MB, free: 13 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.4477, allocations: 4 kB / 458 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4477, allocations: 4 kB / 458 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.4477, allocations: 0 / 458 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.448, allocations: 43.91 kB / 458.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.448, allocations: 4 kB / 458.1 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.4483, allocations: 35.81 kB / 458.1 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.4484, allocations: 12.03 kB / 458.1 MB, free: 12.89 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001652/0.4485, allocations: 149.7 kB / 458.3 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.4486, allocations: 19.81 kB / 458.3 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000701/0.4493, allocations: 218.9 kB / 458.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4493, allocations: 4 kB / 458.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4493, allocations: 0 / 458.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4494, allocations: 96 / 458.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003579/0.4497, allocations: 281.3 kB / 458.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.4497, allocations: 0 / 458.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.45, allocations: 23.98 kB / 458.8 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.45, allocations: 0 / 458.8 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.45, allocations: 4 kB / 458.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.45, allocations: 0 / 458.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.45, allocations: 4 kB / 458.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006053/0.4506, allocations: 237.3 kB / 459.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.672e-05/0.4507, allocations: 104.9 kB / 459.2 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.921e-05/0.4508, allocations: 3.984 kB / 459.2 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.451, allocations: 23.98 kB / 459.2 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.159e-05/0.4511, allocations: 15.97 kB / 459.2 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.4511, allocations: 7.938 kB / 459.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001649/0.4513, allocations: 144.4 kB / 459.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4513, allocations: 0 / 459.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003381/0.4517, allocations: 43.91 kB / 459.4 MB, free: 11.53 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001553/0.4518, allocations: 111.6 kB / 459.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006064/0.4525, allocations: 172.1 kB / 459.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4525, allocations: 4.062 kB / 459.7 MB, free: 11.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002957/0.4528, allocations: 83.89 kB / 459.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.4532, allocations: 41.73 kB / 459.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009019/0.4541, allocations: 453.3 kB / 460.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.4544, allocations: 0.736 MB / 461 MB, free: 9.875 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.396e-05/0.4546, allocations: 23.42 kB / 461 MB, free: 9.852 MB / 346.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4546, allocations: 0 / 461 MB, free: 9.852 MB / 346.7 MB Notification: Performance of Templates: time 0.005846/0.4604, allocations: 2.38 MB / 463.4 MB, free: 7.484 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches