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.001153/0.001152, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001252/0.001252, allocations: 187 kB / 18.67 MB, free: 4.402 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.401/1.401, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001278/0.001278, allocations: 47.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09235, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003287/0.09567, allocations: 1.844 MB / 376.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.09692, allocations: 0.6364 MB / 377.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.09708, allocations: 4 kB / 377.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001429/0.09727, allocations: 23.67 kB / 377.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001738/0.09745, allocations: 35.66 kB / 377.2 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003029/0.09776, allocations: 75.84 kB / 377.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.09803, allocations: 155.5 kB / 377.4 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.09822, allocations: 77.48 kB / 377.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.09837, allocations: 71.64 kB / 377.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.09853, allocations: 83.55 kB / 377.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.09857, allocations: 12 kB / 377.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.31e-05/0.09865, allocations: 23.94 kB / 377.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.694e-05/0.09875, allocations: 43.83 kB / 377.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.807e-05/0.09885, allocations: 79.53 kB / 377.8 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.09913, allocations: 191 kB / 378 MB, free: 1.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.09915, allocations: 0 / 378 MB, free: 1.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09916, allocations: 7.938 kB / 378 MB, free: 1.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.09917, allocations: 4 kB / 378 MB, free: 1.699 MB / 318.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.0009532/0.1001, allocations: 0.5102 MB / 378.5 MB, free: 1.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.1002, allocations: 8.031 kB / 378.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.665e-05/0.1002, allocations: 46.73 kB / 378.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.902e-05/0.1003, allocations: 24.8 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.1006, allocations: 243.9 kB / 378.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.1006, allocations: 12.66 kB / 378.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.319e-05/0.1007, allocations: 12.38 kB / 378.8 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003571/0.101, allocations: 199.1 kB / 379 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.1011, allocations: 0 / 379 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.1011, allocations: 8 kB / 379 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.1011, allocations: 11.94 kB / 379.1 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002931/0.1014, allocations: 143.8 kB / 379.2 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1766/0.278, allocations: 0.772 MB / 380 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.2784, allocations: 163.2 kB / 380.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.2786, allocations: 76.12 kB / 380.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.354e-05/0.2787, allocations: 7.641 kB / 380.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003202/0.279, allocations: 144.6 kB / 380.4 MB, free: 12.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.014e-06/0.279, allocations: 3.531 kB / 380.4 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000735/0.2798, allocations: 253.6 kB / 380.6 MB, free: 12.35 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.2798, allocations: 86.33 kB / 380.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.2801, allocations: 203.8 kB / 380.9 MB, free: 12.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.2801, allocations: 31.58 kB / 380.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.49e-05/0.2802, allocations: 140.2 kB / 381.1 MB, free: 12.03 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.639e-05/0.2802, allocations: 45.89 kB / 381.1 MB, free: 12 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.4e-05/0.2803, allocations: 42.53 kB / 381.1 MB, free: 11.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.696e-05/0.2804, allocations: 333.1 kB / 381.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.2806, allocations: 68.77 kB / 381.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.2808, allocations: 134.4 kB / 381.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003456/0.2812, allocations: 201.5 kB / 381.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2812, allocations: 0 / 381.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005279/0.2817, allocations: 244.8 kB / 382.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.2818, allocations: 5.5 kB / 382.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2818, allocations: 4.359 kB / 382.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.2818, allocations: 2.75 kB / 382.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.282, allocations: 31.36 kB / 382.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.282, allocations: 12.42 kB / 382.2 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.2822, allocations: 31.97 kB / 382.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.2822, allocations: 14.55 kB / 382.2 MB, free: 11.48 MB / 318.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.0001369/0.2823, allocations: 139.1 kB / 382.3 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.116e-05/0.2824, allocations: 17.58 kB / 382.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005444/0.2829, allocations: 214.1 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.283, allocations: 2.25 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.283, allocations: 8.984 kB / 382.6 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.283, allocations: 5.062 kB / 382.6 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002846/0.2833, allocations: 268.5 kB / 382.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2833, allocations: 1.375 kB / 382.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.2834, allocations: 21.08 kB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2834, allocations: 1.531 kB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.2834, allocations: 2.688 kB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2834, allocations: 1.562 kB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.2835, allocations: 5.125 kB / 382.9 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004051/0.2839, allocations: 234.6 kB / 383.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.2839, allocations: 98.75 kB / 383.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.2839, allocations: 3.719 kB / 383.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.2841, allocations: 19.44 kB / 383.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.2842, allocations: 21.06 kB / 383.2 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.2842, allocations: 4.297 kB / 383.2 MB, free: 10.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001171/0.2843, allocations: 148.5 kB / 383.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2843, allocations: 3.391 kB / 383.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.2846, allocations: 40.16 kB / 383.4 MB, free: 10.82 MB / 318.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.0006087/0.2852, allocations: 0.7689 MB / 384.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004171/0.2856, allocations: 176.3 kB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.2856, allocations: 8.766 kB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.2858, allocations: 83.41 kB / 384.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.2862, allocations: 45.22 kB / 384.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.2885, allocations: 2.167 MB / 386.7 MB, free: 8.508 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001857/0.2888, allocations: 0.74 MB / 387.4 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.2889, allocations: 31.81 kB / 387.4 MB, free: 7.801 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.949e-05/0.289, allocations: 54.92 kB / 387.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.289, allocations: 0 / 387.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.3119, allocations: 4.118 MB / 391.6 MB, free: 7.082 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.433, allocations: 9.078 kB / 391.6 MB, free: 7.074 MB / 318.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches