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.001296/0.001296, allocations: 110.4 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.001236/0.001236, 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.394/1.394, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001862/0.001862, allocations: 59.89 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08606/0.08793, allocations: 46.61 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003659/0.09164, allocations: 1.852 MB / 376.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.09313, allocations: 0.6364 MB / 377.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/0.09334, allocations: 7.938 kB / 377.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.09352, allocations: 23.73 kB / 377.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.09376, allocations: 31.66 kB / 377.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.09413, allocations: 79.78 kB / 377.3 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.09446, allocations: 155.5 kB / 377.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.09468, allocations: 77.47 kB / 377.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.09485, allocations: 71.66 kB / 377.6 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.09504, allocations: 83.53 kB / 377.6 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.159e-05/0.09509, allocations: 12 kB / 377.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.09e-05/0.09518, allocations: 20 kB / 377.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.09529, allocations: 43.84 kB / 377.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.09541, allocations: 79.53 kB / 377.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.09574, allocations: 187 kB / 378 MB, free: 1.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.09575, allocations: 0 / 378 MB, free: 1.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.09576, allocations: 4 kB / 378 MB, free: 1.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.09578, allocations: 0 / 378 MB, free: 1.727 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.001058/0.09685, allocations: 0.5141 MB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.0969, allocations: 12.03 kB / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.888e-05/0.09696, allocations: 46.73 kB / 378.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.372e-05/0.09704, allocations: 28.78 kB / 378.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.09738, allocations: 235.9 kB / 378.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.09741, allocations: 12.66 kB / 378.8 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.09744, allocations: 16.38 kB / 378.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003869/0.09784, allocations: 195 kB / 379 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.09786, allocations: 0 / 379 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.09789, allocations: 11.98 kB / 379 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.09792, allocations: 12 kB / 379.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003231/0.09825, allocations: 143.8 kB / 379.2 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.161/0.2592, allocations: 0.7662 MB / 380 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003193/0.2596, allocations: 165.7 kB / 380.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.2598, allocations: 75.75 kB / 380.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/0.2598, allocations: 7.281 kB / 380.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.2601, allocations: 148.1 kB / 380.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.953e-06/0.2601, allocations: 2.25 kB / 380.4 MB, free: 12.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005675/0.2607, allocations: 252.7 kB / 380.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.2607, allocations: 87.27 kB / 380.7 MB, free: 12.26 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.2609, allocations: 207 kB / 380.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.2609, allocations: 27.88 kB / 380.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.754e-05/0.261, allocations: 146.5 kB / 381.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.261, allocations: 43.39 kB / 381.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.696e-05/0.2611, allocations: 46.58 kB / 381.1 MB, free: 12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.03e-05/0.2611, allocations: 331.5 kB / 381.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.2613, allocations: 68.5 kB / 381.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.2615, allocations: 124.5 kB / 381.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000294/0.2618, allocations: 214 kB / 381.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2618, allocations: 0 / 381.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004456/0.2622, allocations: 238.5 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.2623, allocations: 8.625 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2623, allocations: 1.812 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.2623, allocations: 3.406 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.2625, allocations: 34.34 kB / 382.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.2625, allocations: 7.297 kB / 382.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.2627, allocations: 34.38 kB / 382.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.2627, allocations: 12.75 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.0001026/0.2628, allocations: 141.9 kB / 382.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.552e-05/0.2629, allocations: 19.69 kB / 382.4 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004816/0.2634, allocations: 214.8 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.2634, allocations: 6.438 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.2634, allocations: 4.438 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2634, allocations: 1.5 kB / 382.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002615/0.2637, allocations: 269.7 kB / 382.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2637, allocations: 1.156 kB / 382.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.2638, allocations: 20.5 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2638, allocations: 1.188 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.2638, allocations: 4.672 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.2638, allocations: 4.938 kB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2638, allocations: 5.062 kB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000375/0.2642, allocations: 223.4 kB / 383.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.339e-05/0.2643, allocations: 103.4 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.2643, allocations: 5.344 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.2644, allocations: 19.05 kB / 383.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.799e-05/0.2645, allocations: 21.12 kB / 383.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.2645, allocations: 3.578 kB / 383.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001048/0.2646, allocations: 146.3 kB / 383.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2646, allocations: 3.281 kB / 383.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002549/0.2649, allocations: 38.36 kB / 383.4 MB, free: 10.84 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.0005257/0.2654, allocations: 0.7728 MB / 384.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003691/0.2658, allocations: 172.4 kB / 384.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2658, allocations: 7.828 kB / 384.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001653/0.266, allocations: 85 kB / 384.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.2663, allocations: 47.36 kB / 384.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.2686, allocations: 2.166 MB / 386.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2687, allocations: 0.7341 MB / 387.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.2689, allocations: 33.2 kB / 387.4 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.561e-05/0.269, allocations: 59.7 kB / 387.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of SimCode: time 5.81e-07/0.269, allocations: 0 / 387.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02662/0.2956, allocations: 4.11 MB / 391.6 MB, free: 7.098 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.484/8.779, allocations: 18.17 kB / 391.6 MB, free: 7.082 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