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.001134/0.001134, allocations: 110.3 kB / 17.73 MB, free: 5.34 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.001154/0.001155, allocations: 183.1 kB / 18.66 MB, free: 4.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.294/1.294, 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.001266/0.001266, allocations: 55.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08587/0.08715, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00336/0.09055, allocations: 1.859 MB / 376.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.09199, allocations: 0.6286 MB / 377.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.09221, allocations: 7.938 kB / 377.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.09242, allocations: 27.72 kB / 377.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002551/0.09272, allocations: 35.67 kB / 377.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.09313, allocations: 67.86 kB / 377.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.09345, allocations: 167.4 kB / 377.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.09365, allocations: 73.5 kB / 377.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.09383, allocations: 75.62 kB / 377.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.09403, allocations: 79.56 kB / 377.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.947e-05/0.09407, allocations: 12 kB / 377.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.79e-05/0.09418, allocations: 20 kB / 377.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.999e-05/0.09429, allocations: 47.83 kB / 377.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.09441, allocations: 75.53 kB / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000326/0.09474, allocations: 187 kB / 378 MB, free: 1.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.09476, allocations: 4 kB / 378 MB, free: 1.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.09476, allocations: 0 / 378 MB, free: 1.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.09478, allocations: 0 / 378 MB, free: 1.723 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.001081/0.09587, allocations: 0.518 MB / 378.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.09592, allocations: 8.031 kB / 378.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.572e-05/0.096, allocations: 50.73 kB / 378.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.507e-05/0.09608, allocations: 24.8 kB / 378.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003369/0.09642, allocations: 243.8 kB / 378.8 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.09645, allocations: 8.656 kB / 378.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.639e-05/0.09648, allocations: 16.38 kB / 378.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.09686, allocations: 195.1 kB / 379 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.09689, allocations: 4 kB / 379 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.09691, allocations: 7.984 kB / 379.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.09694, allocations: 4 kB / 379.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/0.09726, allocations: 151.8 kB / 379.2 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1698/0.2671, allocations: 0.765 MB / 380 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.2674, allocations: 168.1 kB / 380.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.2676, allocations: 74.17 kB / 380.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.798e-05/0.2676, allocations: 5.094 kB / 380.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002446/0.2679, allocations: 148.4 kB / 380.4 MB, free: 12.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.2679, allocations: 2.438 kB / 380.4 MB, free: 12.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005711/0.2685, allocations: 253.1 kB / 380.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.2685, allocations: 84.91 kB / 380.7 MB, free: 12.26 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.2687, allocations: 204.7 kB / 380.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.2687, allocations: 30.02 kB / 380.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.285e-05/0.2688, allocations: 147.8 kB / 381.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.097e-05/0.2688, allocations: 41.98 kB / 381.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.728e-05/0.2689, allocations: 43.97 kB / 381.1 MB, free: 12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.847e-05/0.269, allocations: 334.9 kB / 381.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.2691, allocations: 69.08 kB / 381.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.2693, allocations: 125.2 kB / 381.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.2696, allocations: 210.4 kB / 381.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2696, allocations: 0 / 381.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004505/0.27, allocations: 242 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2701, allocations: 5.5 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2701, allocations: 2.75 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.2701, allocations: 6.656 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.2703, allocations: 33.38 kB / 382.2 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.2703, allocations: 8.453 kB / 382.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.2705, allocations: 35.72 kB / 382.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.2705, allocations: 9.438 kB / 382.2 MB, free: 11.5 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.0001061/0.2706, allocations: 144.1 kB / 382.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.559e-05/0.2707, allocations: 18.41 kB / 382.4 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005023/0.2712, allocations: 217 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.2712, allocations: 5.25 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.2712, allocations: 5.156 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2712, allocations: 1.156 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.2715, allocations: 268.4 kB / 382.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2715, allocations: 4.109 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.2716, allocations: 20.83 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2717, allocations: 1.156 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.2717, allocations: 2 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.2717, allocations: 1.594 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.2717, allocations: 5.156 kB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003375/0.272, allocations: 230 kB / 383.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.234e-05/0.2721, allocations: 99.22 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.2721, allocations: 2.062 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.2722, allocations: 23.58 kB / 383.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.967e-05/0.2723, allocations: 20.56 kB / 383.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.2723, allocations: 4.875 kB / 383.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.696e-05/0.2724, allocations: 148.4 kB / 383.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2724, allocations: 3.281 kB / 383.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.2727, allocations: 37.25 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.0005205/0.2732, allocations: 0.7677 MB / 384.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003674/0.2736, allocations: 176 kB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2736, allocations: 7.766 kB / 384.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.2738, allocations: 82.89 kB / 384.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.2741, allocations: 46.23 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.002156/0.2763, allocations: 2.169 MB / 386.7 MB, free: 8.508 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.2764, allocations: 0.7388 MB / 387.4 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.2766, allocations: 32.72 kB / 387.4 MB, free: 7.801 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.104e-05/0.2766, allocations: 54.19 kB / 387.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2767, allocations: 1.25 kB / 387.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.2974, allocations: 4.112 MB / 391.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.508/7.805, allocations: 20.77 kB / 391.6 MB, free: 7.059 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