Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008878/0.0008879, allocations: 90.67 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.393e-05/3.395e-05, allocations: 7.984 kB / 350.5 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.09882, allocations: 51.48 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.366/0.4648, allocations: 78.41 MB / 480.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/0.4651, allocations: 67.2 kB / 480.5 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007378/0.4725, allocations: 2.825 MB / 483.3 MB, free: 8.637 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4725, allocations: 0 / 483.3 MB, free: 8.637 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.413e-05/0.4725, allocations: 12 kB / 483.3 MB, free: 8.625 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0005578/0.4731, allocations: 476 kB / 483.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.4731, allocations: 8.031 kB / 483.8 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.4733, allocations: 40.45 kB / 483.8 MB, free: 8.086 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.4735, allocations: 226 kB / 484.1 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.4735, allocations: 14.97 kB / 484.1 MB, free: 7.828 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.818e-05/0.4736, allocations: 19.17 kB / 484.1 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.4738, allocations: 180.1 kB / 484.3 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.4739, allocations: 6.344 kB / 484.3 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.4739, allocations: 3.625 kB / 484.3 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.4739, allocations: 8 kB / 484.3 MB, free: 7.652 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.4741, allocations: 118 kB / 484.4 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008825/0.475, allocations: 0.7951 MB / 485.2 MB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.4752, allocations: 145.9 kB / 485.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.207e-05/0.4753, allocations: 60.89 kB / 485.4 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.4754, allocations: 12.12 kB / 485.4 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.4755, allocations: 132.3 kB / 485.5 MB, free: 6.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.905e-06/0.4755, allocations: 1.078 kB / 485.5 MB, free: 6.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002887/0.4758, allocations: 162 kB / 485.7 MB, free: 6.348 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.4759, allocations: 85.09 kB / 485.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.476, allocations: 183.3 kB / 486 MB, free: 6.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.4761, allocations: 29.7 kB / 486 MB, free: 6.051 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.409e-05/0.4761, allocations: 145.7 kB / 486.1 MB, free: 5.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.877e-05/0.4762, allocations: 42.77 kB / 486.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.4762, allocations: 0 / 486.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.231e-05/0.4762, allocations: 329.6 kB / 486.5 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.256e-05/0.4763, allocations: 66.09 kB / 486.6 MB, free: 5.527 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.629e-05/0.4764, allocations: 105.2 kB / 486.7 MB, free: 5.418 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.827e-05/0.4765, allocations: 69.97 kB / 486.7 MB, free: 5.371 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4765, allocations: 4 kB / 486.7 MB, free: 5.367 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002607/0.4768, allocations: 219.9 kB / 487 MB, free: 5.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.4768, allocations: 9.406 kB / 487 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.4768, allocations: 2.156 kB / 487 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4769, allocations: 4 kB / 487 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.477, allocations: 39.91 kB / 487 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.477, allocations: 4 kB / 487 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.4772, allocations: 35.64 kB / 487 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.4772, allocations: 19.62 kB / 487.1 MB, free: 5.086 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 () * 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 6.115e-05/0.4773, allocations: 116.5 kB / 487.2 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.323e-05/0.4773, allocations: 19.81 kB / 487.2 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002959/0.4776, allocations: 183.6 kB / 487.4 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.4776, allocations: 4 kB / 487.4 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4776, allocations: 0 / 487.4 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.4777, allocations: 7.984 kB / 487.4 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.4778, allocations: 268.6 kB / 487.7 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4779, allocations: 0 / 487.7 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.478, allocations: 35.28 kB / 487.7 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.686e-06/0.478, allocations: 0 / 487.7 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.478, allocations: 4 kB / 487.7 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.478, allocations: 0 / 487.7 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.478, allocations: 0 / 487.7 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002373/0.4783, allocations: 212.3 kB / 487.9 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.4783, allocations: 100.8 kB / 488 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.807e-05/0.4783, allocations: 7.734 kB / 488 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.4785, allocations: 19.98 kB / 488 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/0.4785, allocations: 24.14 kB / 488 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.4786, allocations: 8 kB / 488.1 MB, free: 4.125 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.009e-05/0.4787, allocations: 144.8 kB / 488.2 MB, free: 4.004 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.4787, allocations: 0 / 488.2 MB, free: 4.004 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002287/0.4789, allocations: 52.73 kB / 488.2 MB, free: 3.957 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 () * 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.000157/0.4791, allocations: 99.41 kB / 488.3 MB, free: 3.852 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002468/0.4793, allocations: 153.7 kB / 488.5 MB, free: 3.738 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.4793, allocations: 384 / 488.5 MB, free: 3.738 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.4794, allocations: 73.11 kB / 488.6 MB, free: 3.684 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.4797, allocations: 37.47 kB / 488.6 MB, free: 3.656 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000459/0.4802, allocations: 257.2 kB / 488.9 MB, free: 3.422 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001749/0.4804, allocations: 0.7399 MB / 489.6 MB, free: 2.652 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001109/0.4805, allocations: 30.66 kB / 489.6 MB, free: 2.625 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.104e-05/0.4806, allocations: 23.42 kB / 489.6 MB, free: 2.602 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4806, allocations: 0 / 489.6 MB, free: 2.602 MB / 346.7 MB Notification: Performance of Templates: time 0.00381/0.4844, allocations: 1.82 MB / 491.5 MB, free: 0.8555 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches