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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009359/0.0009359, allocations: 104.6 kB / 17.16 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.228/1.228, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 55.92 kB / 280.1 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07895/0.08016, allocations: 46.62 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00322/0.08342, allocations: 1.917 MB / 328.6 MB, free: 2.855 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.08456, allocations: 0.6165 MB / 329.2 MB, free: 2.23 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.08474, allocations: 4 kB / 329.2 MB, free: 2.227 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.08488, allocations: 19.8 kB / 329.2 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001483/0.08504, allocations: 23.78 kB / 329.3 MB, free: 2.184 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.0853, allocations: 59.91 kB / 329.3 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002015/0.08551, allocations: 159.4 kB / 329.5 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.08568, allocations: 65.42 kB / 329.5 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.08582, allocations: 63.66 kB / 329.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.08596, allocations: 83.61 kB / 329.7 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.08599, allocations: 8 kB / 329.7 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.584e-05/0.08607, allocations: 15.98 kB / 329.7 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.263e-05/0.08614, allocations: 39.84 kB / 329.8 MB, free: 1.695 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.925e-05/0.08624, allocations: 79.47 kB / 329.8 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.08643, allocations: 155.6 kB / 330 MB, free: 1.465 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.08644, allocations: 0 / 330 MB, free: 1.465 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.08645, allocations: 0 / 330 MB, free: 1.465 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.08646, allocations: 0 / 330 MB, free: 1.465 MB / 270.1 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.0008421/0.0873, allocations: 0.5183 MB / 330.5 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.08735, allocations: 8.031 kB / 330.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/0.0874, allocations: 46.73 kB / 330.6 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.193e-05/0.08746, allocations: 24.66 kB / 330.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.08769, allocations: 235.7 kB / 330.8 MB, free: 0.543 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.08772, allocations: 12.66 kB / 330.8 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.261e-05/0.08775, allocations: 16.38 kB / 330.8 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.08809, allocations: 199.1 kB / 331 MB, free: 312 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.0881, allocations: 0 / 331 MB, free: 312 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.08812, allocations: 0 / 331 MB, free: 312 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/0.08815, allocations: 12 kB / 331 MB, free: 300 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.08844, allocations: 143.8 kB / 331.2 MB, free: 156 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.08949, allocations: 0.7817 MB / 332 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.0898, allocations: 169 kB / 332.1 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.08996, allocations: 73.81 kB / 332.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.09, allocations: 7.984 kB / 332.2 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.09025, allocations: 145 kB / 332.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.152e-06/0.09026, allocations: 0 / 332.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005287/0.09079, allocations: 257.5 kB / 332.6 MB, free: 14.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.09085, allocations: 85.05 kB / 332.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.09102, allocations: 199 kB / 332.9 MB, free: 14.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.09105, allocations: 29.7 kB / 332.9 MB, free: 14.28 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.808e-05/0.09116, allocations: 148 kB / 333.1 MB, free: 14.13 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.807e-05/0.0912, allocations: 39.44 kB / 333.1 MB, free: 14.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.241e-05/0.09128, allocations: 41.7 kB / 333.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.0914, allocations: 342.8 kB / 333.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.09155, allocations: 67.95 kB / 333.5 MB, free: 13.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.09173, allocations: 122.7 kB / 333.7 MB, free: 13.49 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.09203, allocations: 202.7 kB / 333.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.09204, allocations: 0 / 333.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004118/0.09246, allocations: 245.1 kB / 334.1 MB, free: 13.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.09248, allocations: 8 kB / 334.1 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.09249, allocations: 0 / 334.1 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.09251, allocations: 4 kB / 334.1 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.09267, allocations: 31.92 kB / 334.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.09269, allocations: 7.984 kB / 334.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.09284, allocations: 32.02 kB / 334.2 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.09287, allocations: 12.7 kB / 334.2 MB, free: 12.93 MB / 286.1 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,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.093, allocations: 145.8 kB / 334.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.704e-05/0.09303, allocations: 19.75 kB / 334.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004063/0.09344, allocations: 215 kB / 334.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.09345, allocations: 0 / 334.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.09347, allocations: 8 kB / 334.6 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.09347, allocations: 0 / 334.6 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.09372, allocations: 277.4 kB / 334.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.09373, allocations: 96 / 334.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.09384, allocations: 23.92 kB / 334.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.09385, allocations: 0 / 334.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.09387, allocations: 4 kB / 334.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.09387, allocations: 0 / 334.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.09388, allocations: 3.938 kB / 334.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003565/0.09424, allocations: 233.6 kB / 335.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.605e-05/0.09431, allocations: 92.91 kB / 335.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.09434, allocations: 0 / 335.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.09447, allocations: 19.98 kB / 335.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.643e-05/0.09453, allocations: 19.97 kB / 335.2 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.09455, allocations: 4 kB / 335.2 MB, free: 11.77 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000108/0.09466, allocations: 140.6 kB / 335.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09467, allocations: 0 / 335.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002409/0.09491, allocations: 43.84 kB / 335.4 MB, free: 11.59 MB / 286.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006373/0.09556, allocations: 0.7743 MB / 336.2 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000343/0.09591, allocations: 171.8 kB / 336.3 MB, free: 10.62 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.09592, allocations: 4 kB / 336.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.09609, allocations: 79.89 kB / 336.4 MB, free: 10.54 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.0964, allocations: 48.28 kB / 336.5 MB, free: 10.49 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.09881, allocations: 2.223 MB / 338.7 MB, free: 8.137 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.09911, allocations: 0.7357 MB / 339.4 MB, free: 7.375 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.09923, allocations: 37.52 kB / 339.5 MB, free: 7.34 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.115e-05/0.09931, allocations: 55.61 kB / 339.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09932, allocations: 0 / 339.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.384/1.483, allocations: 3.742 MB / 343.3 MB, free: 3.516 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002532/1.483, allocations: 194.8 kB / 343.5 MB, free: 3.25 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/3.196, allocations: 4 kB / 343.5 MB, free: 3.246 MB / 286.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches