Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_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.001573/0.001573, allocations: 109.8 kB / 17.06 MB, free: 6.016 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.001536/0.001536, allocations: 189.4 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001496, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2685, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003185/0.2717, allocations: 1.875 MB / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.2729, allocations: 0.583 MB / 402.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.273, allocations: 4 kB / 402.7 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.2732, allocations: 27.67 kB / 402.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001565/0.2734, allocations: 35.66 kB / 402.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000268/0.2736, allocations: 71.86 kB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002495/0.2739, allocations: 167.4 kB / 403 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.2741, allocations: 57.66 kB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.2742, allocations: 79.64 kB / 403.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.2744, allocations: 83.55 kB / 403.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.125e-05/0.2744, allocations: 12 kB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.082e-05/0.2745, allocations: 16 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.958e-05/0.2746, allocations: 43.84 kB / 403.3 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.528e-05/0.2747, allocations: 91.45 kB / 403.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.275, allocations: 186.2 kB / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.275, allocations: 0 / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.275, allocations: 0 / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.275, allocations: 0 / 403.5 MB, free: 5.504 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.0009747/0.276, allocations: 0.5065 MB / 404 MB, free: 4.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.276, allocations: 12.03 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.324e-05/0.2761, allocations: 46.75 kB / 404.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.678e-05/0.2762, allocations: 32.78 kB / 404.1 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003163/0.2765, allocations: 239.8 kB / 404.4 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.2765, allocations: 12.41 kB / 404.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.093e-05/0.2766, allocations: 16 kB / 404.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003854/0.2769, allocations: 203.7 kB / 404.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.277, allocations: 0 / 404.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.277, allocations: 4 kB / 404.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.526e-05/0.277, allocations: 11.98 kB / 404.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.2773, allocations: 142.9 kB / 404.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.2785, allocations: 0.7779 MB / 405.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.2789, allocations: 161.1 kB / 405.7 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.279, allocations: 73.81 kB / 405.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.413e-05/0.2791, allocations: 11.92 kB / 405.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.2794, allocations: 141.2 kB / 405.9 MB, free: 2.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.2794, allocations: 0 / 405.9 MB, free: 2.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006102/0.28, allocations: 257.6 kB / 406.2 MB, free: 2.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.159e-05/0.2801, allocations: 81.11 kB / 406.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.2803, allocations: 199 kB / 406.4 MB, free: 2.355 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.2803, allocations: 33.7 kB / 406.5 MB, free: 2.316 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.2805, allocations: 148.3 kB / 406.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.516e-05/0.2805, allocations: 51.58 kB / 406.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.63e-05/0.2806, allocations: 45.7 kB / 406.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.2808, allocations: 330.8 kB / 407 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.2809, allocations: 71.94 kB / 407.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.2811, allocations: 122.9 kB / 407.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003434/0.2815, allocations: 210.5 kB / 407.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2815, allocations: 4 kB / 407.4 MB, free: 1.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004401/0.2819, allocations: 245.2 kB / 407.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.282, allocations: 4 kB / 407.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.282, allocations: 4 kB / 407.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.282, allocations: 0 / 407.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.2822, allocations: 39.92 kB / 407.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.2822, allocations: 4.891 kB / 407.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.2824, allocations: 35.86 kB / 407.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.2824, allocations: 7.938 kB / 407.8 MB, free: 0.9453 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.0001405/0.2825, allocations: 146.3 kB / 407.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.2826, allocations: 15.91 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004547/0.283, allocations: 218.9 kB / 408.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.2831, allocations: 8 kB / 408.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2831, allocations: 0 / 408.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2831, allocations: 0 / 408.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002992/0.2834, allocations: 265.5 kB / 408.4 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2834, allocations: 4 kB / 408.4 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.2835, allocations: 19.98 kB / 408.4 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2835, allocations: 0 / 408.4 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.2835, allocations: 4 kB / 408.4 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.2835, allocations: 4 kB / 408.4 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2836, allocations: 0 / 408.4 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004245/0.284, allocations: 233.6 kB / 408.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.022e-05/0.2841, allocations: 100.9 kB / 408.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/0.2841, allocations: 7.984 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.2842, allocations: 11.98 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.811e-05/0.2843, allocations: 23.97 kB / 408.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.2843, allocations: 7.938 kB / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001299/0.2845, allocations: 144.6 kB / 408.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2845, allocations: 0 / 408.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.2847, allocations: 36.05 kB / 409 MB, free: 15.61 MB / 334.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.0007766/0.2855, allocations: 0.7731 MB / 409.8 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.2859, allocations: 171.8 kB / 409.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/0.286, allocations: 4 kB / 409.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.2861, allocations: 83.83 kB / 410 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.2865, allocations: 59.45 kB / 410.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.2893, allocations: 2.173 MB / 412.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.2897, allocations: 0.7319 MB / 413 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.2898, allocations: 33.53 kB / 413 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.2899, allocations: 63.41 kB / 413.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2899, allocations: 0 / 413.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02545/0.3154, allocations: 4.113 MB / 417.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.343, allocations: 9.031 kB / 417.2 MB, free: 7.312 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches