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.001401/0.001401, allocations: 177.1 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008327/0.0008327, allocations: 78.7 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.422e-05/1.424e-05, allocations: 0 / 315.5 MB, free: 22.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08771, allocations: 47.59 MB / 363.1 MB, free: 7.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3192/0.407, allocations: 76.38 MB / 439.4 MB, free: 3.266 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.4072, allocations: 61.59 kB / 439.5 MB, free: 3.234 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007636/0.4149, allocations: 2.671 MB / 442.2 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4149, allocations: 0 / 442.2 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.4149, allocations: 4 kB / 442.2 MB, free: 0.957 MB / 314.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.0006441/0.4156, allocations: 478 kB / 442.6 MB, free: 468 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4156, allocations: 8.031 kB / 442.7 MB, free: 460 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.34e-05/0.4157, allocations: 23.72 kB / 442.7 MB, free: 436 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/0.416, allocations: 228.1 kB / 442.9 MB, free: 176 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.416, allocations: 11.95 kB / 442.9 MB, free: 164 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.416, allocations: 8 kB / 442.9 MB, free: 156 kB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002184/0.4162, allocations: 109.5 kB / 443 MB, free: 80 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002527/0.4165, allocations: 158.1 kB / 443.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.4165, allocations: 4.844 kB / 443.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.4166, allocations: 0 / 443.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.4166, allocations: 4 kB / 443.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009824/0.4176, allocations: 0.757 MB / 443.9 MB, free: 15.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002182/0.4178, allocations: 141.3 kB / 444.1 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.932e-05/0.4179, allocations: 56.58 kB / 444.1 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.985e-05/0.4179, allocations: 12.08 kB / 444.2 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001776/0.4181, allocations: 128.7 kB / 444.3 MB, free: 14.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.153e-06/0.4181, allocations: 4 kB / 444.3 MB, free: 14.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003197/0.4185, allocations: 163.6 kB / 444.4 MB, free: 14.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.4185, allocations: 85.08 kB / 444.5 MB, free: 14.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.4187, allocations: 164.2 kB / 444.7 MB, free: 14.49 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.4187, allocations: 25.7 kB / 444.7 MB, free: 14.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/0.4188, allocations: 143.9 kB / 444.9 MB, free: 14.33 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.485e-05/0.4189, allocations: 37.2 kB / 444.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-06/0.4189, allocations: 0 / 444.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.419, allocations: 336 kB / 445.2 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.153e-05/0.4191, allocations: 51.97 kB / 445.3 MB, free: 13.94 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.4192, allocations: 103.7 kB / 445.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.4193, allocations: 69.27 kB / 445.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.4193, allocations: 3.953 kB / 445.4 MB, free: 13.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002793/0.4196, allocations: 192.4 kB / 445.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.4196, allocations: 4 kB / 445.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.4197, allocations: 4 kB / 445.6 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.4197, allocations: 4 kB / 445.6 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.4199, allocations: 40.09 kB / 445.7 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.4199, allocations: 4 kB / 445.7 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.42, allocations: 31.64 kB / 445.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.4201, allocations: 8 kB / 445.7 MB, free: 13.53 MB / 330.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 9.295e-05/0.4202, allocations: 112.9 kB / 445.8 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.4202, allocations: 27.67 kB / 445.9 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003032/0.4205, allocations: 184.8 kB / 446 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.4205, allocations: 0 / 446 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4205, allocations: 0 / 446 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.4205, allocations: 8.094 kB / 446 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.4207, allocations: 225.2 kB / 446.3 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.4208, allocations: 4 kB / 446.3 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.4209, allocations: 31.91 kB / 446.3 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.4209, allocations: 3.953 kB / 446.3 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.4209, allocations: 7.531 kB / 446.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.4209, allocations: 7.938 kB / 446.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4209, allocations: 0 / 446.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/0.4212, allocations: 196.2 kB / 446.5 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.4213, allocations: 96.78 kB / 446.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.4213, allocations: 3.984 kB / 446.6 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.4214, allocations: 23.98 kB / 446.6 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.474e-05/0.4215, allocations: 19.28 kB / 446.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.4215, allocations: 4 kB / 446.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.949e-05/0.4216, allocations: 134.1 kB / 446.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4216, allocations: 0 / 446.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002264/0.4218, allocations: 32 kB / 446.8 MB, free: 12.46 MB / 330.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.0001417/0.422, allocations: 103.2 kB / 446.9 MB, free: 12.35 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002328/0.4222, allocations: 134.7 kB / 447.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4222, allocations: 4 kB / 447.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.4224, allocations: 65.22 kB / 447.1 MB, free: 12.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.4226, allocations: 34.59 kB / 447.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000436/0.4231, allocations: 246.6 kB / 447.4 MB, free: 11.94 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.4234, allocations: 0.7433 MB / 448.1 MB, free: 11.17 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.4235, allocations: 41.81 kB / 448.2 MB, free: 11.13 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.549e-05/0.4236, allocations: 19.38 kB / 448.2 MB, free: 11.11 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4236, allocations: 0 / 448.2 MB, free: 11.11 MB / 330.7 MB Notification: Performance of Templates: time 0.004028/0.4276, allocations: 1.696 MB / 449.9 MB, free: 9.426 MB / 330.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