Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001159/0.001159, allocations: 181.1 kB / 17.01 MB, free: 5.125 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.56/1.56, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0009755/0.0009756, allocations: 93.09 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003839/0.0003839, allocations: 8 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.34, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1132/0.4533, allocations: 76.89 MB / 452.7 MB, free: 3.793 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003489/0.4537, allocations: 71.95 kB / 452.8 MB, free: 3.723 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009171/0.4629, allocations: 2.7 MB / 455.5 MB, free: 1.016 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.463, allocations: 4 kB / 455.5 MB, free: 1.012 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.463, allocations: 4 kB / 455.5 MB, free: 1.008 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.0008402/0.4638, allocations: 499.9 kB / 456 MB, free: 480 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.4639, allocations: 8.031 kB / 456 MB, free: 472 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.41e-05/0.464, allocations: 23.72 kB / 456 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.4643, allocations: 240.9 kB / 456.2 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.4644, allocations: 16.23 kB / 456.2 MB, free: 152 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.039e-05/0.4644, allocations: 12 kB / 456.2 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004275/0.4648, allocations: 195 kB / 456.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.4649, allocations: 3.984 kB / 456.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.4649, allocations: 11.94 kB / 456.5 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.726e-05/0.4649, allocations: 4 kB / 456.5 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003123/0.4653, allocations: 135.9 kB / 456.6 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.4665, allocations: 0.7937 MB / 457.4 MB, free: 14.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.4669, allocations: 161 kB / 457.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-05/0.467, allocations: 4 kB / 457.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/0.4672, allocations: 161 kB / 457.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.873e-06/0.4673, allocations: 0 / 457.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005911/0.4679, allocations: 245.9 kB / 457.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/0.468, allocations: 93.09 kB / 458 MB, free: 14.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.4681, allocations: 178.1 kB / 458.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.4682, allocations: 37.69 kB / 458.2 MB, free: 13.99 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.4683, allocations: 136.1 kB / 458.4 MB, free: 13.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.499e-05/0.4684, allocations: 47.5 kB / 458.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-06/0.4684, allocations: 0 / 458.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.4685, allocations: 334.8 kB / 458.8 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.4687, allocations: 75.95 kB / 458.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.4689, allocations: 119.5 kB / 458.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.4691, allocations: 95.95 kB / 459 MB, free: 13.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4691, allocations: 0 / 459 MB, free: 13.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004356/0.4695, allocations: 245.2 kB / 459.3 MB, free: 12.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.4696, allocations: 8 kB / 459.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.4696, allocations: 0 / 459.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.518e-05/0.4696, allocations: 7.984 kB / 459.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.4698, allocations: 35.92 kB / 459.3 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.4698, allocations: 4 kB / 459.3 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.47, allocations: 40 kB / 459.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.47, allocations: 8 kB / 459.4 MB, free: 12.82 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.0001491/0.4702, allocations: 141.7 kB / 459.5 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.4702, allocations: 19.72 kB / 459.5 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004877/0.4707, allocations: 218.9 kB / 459.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.954e-06/0.4707, allocations: 4 kB / 459.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.4707, allocations: 0 / 459.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4708, allocations: 3.984 kB / 459.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003034/0.4711, allocations: 273.4 kB / 460 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4711, allocations: 0 / 460 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.4712, allocations: 23.98 kB / 460 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.4712, allocations: 4 kB / 460 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.4712, allocations: 4 kB / 460.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4713, allocations: 4 kB / 460.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4713, allocations: 0 / 460.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004052/0.4717, allocations: 243.2 kB / 460.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.82e-05/0.4717, allocations: 96.86 kB / 460.4 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/0.4718, allocations: 3.984 kB / 460.4 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.4719, allocations: 23.98 kB / 460.4 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/0.472, allocations: 19.95 kB / 460.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.472, allocations: 11.94 kB / 460.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.4722, allocations: 144.4 kB / 460.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4722, allocations: 0 / 460.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002622/0.4724, allocations: 39.98 kB / 460.6 MB, free: 11.45 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.0001959/0.4726, allocations: 113.2 kB / 460.7 MB, free: 11.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000387/0.473, allocations: 172 kB / 460.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.473, allocations: 0 / 460.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.4732, allocations: 83.89 kB / 461 MB, free: 11.08 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.4735, allocations: 42.53 kB / 461 MB, free: 11.04 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007483/0.4743, allocations: 426.8 kB / 461.4 MB, free: 10.6 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.4748, allocations: 0.7438 MB / 462.2 MB, free: 9.828 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001423/0.4749, allocations: 37.52 kB / 462.2 MB, free: 9.789 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.071e-05/0.475, allocations: 15.44 kB / 462.2 MB, free: 9.773 MB / 346.7 MB Notification: Performance of SimCode: time 3.2e-07/0.475, allocations: 0 / 462.2 MB, free: 9.773 MB / 346.7 MB Notification: Performance of Templates: time 0.005115/0.4801, allocations: 1.826 MB / 464.1 MB, free: 7.969 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/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_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches