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.001478/0.001478, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001753/0.001753, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.385/1.385, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009811/0.0009812, allocations: 50.16 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09104, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002943/0.09402, allocations: 1.866 MB / 352 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009413/0.09498, allocations: 0.5882 MB / 352.6 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.905e-05/0.09508, allocations: 4 kB / 352.6 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.09521, allocations: 23.67 kB / 352.6 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.09535, allocations: 35.66 kB / 352.7 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.09561, allocations: 71.86 kB / 352.7 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.09582, allocations: 167.3 kB / 352.9 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.096, allocations: 65.62 kB / 353 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.09611, allocations: 71.72 kB / 353 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.09625, allocations: 83.55 kB / 353.1 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.09628, allocations: 12 kB / 353.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.917e-05/0.09636, allocations: 19.98 kB / 353.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.447e-05/0.09645, allocations: 47.78 kB / 353.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.925e-05/0.09653, allocations: 79.48 kB / 353.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002148/0.09675, allocations: 175.6 kB / 353.4 MB, free: 1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.09677, allocations: 0 / 353.4 MB, free: 1 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09677, allocations: 0 / 353.4 MB, free: 1 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.09679, allocations: 4 kB / 353.4 MB, free: 0.9961 MB / 286.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.000814/0.09761, allocations: 0.4989 MB / 353.9 MB, free: 456 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.09765, allocations: 12.03 kB / 354 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.146e-05/0.09771, allocations: 50.73 kB / 354 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.609e-05/0.09777, allocations: 24.66 kB / 354 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.09801, allocations: 239.7 kB / 354.3 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.09804, allocations: 12.66 kB / 354.3 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.373e-05/0.09807, allocations: 19.94 kB / 354.3 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003493/0.09842, allocations: 191.8 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.09844, allocations: 3.938 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.09846, allocations: 4 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.09849, allocations: 4 kB / 354.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002938/0.09879, allocations: 151.8 kB / 354.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.09982, allocations: 0.774 MB / 355.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003281/0.1002, allocations: 169 kB / 355.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.1003, allocations: 73.81 kB / 355.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.259e-05/0.1004, allocations: 7.984 kB / 355.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002503/0.1006, allocations: 152.8 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.1006, allocations: 4 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005543/0.1012, allocations: 249.5 kB / 356.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.1012, allocations: 81.05 kB / 356.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.1014, allocations: 199 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.1015, allocations: 33.7 kB / 356.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.135e-05/0.1016, allocations: 144 kB / 356.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.859e-05/0.1016, allocations: 43.56 kB / 356.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.348e-05/0.1017, allocations: 49.64 kB / 356.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1018, allocations: 334.8 kB / 356.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.102, allocations: 67.95 kB / 357 MB, free: 13.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.1021, allocations: 118.8 kB / 357.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.1025, allocations: 210.7 kB / 357.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1025, allocations: 0 / 357.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004254/0.1029, allocations: 241.1 kB / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.103, allocations: 4 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.103, allocations: 4 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.103, allocations: 4 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.1032, allocations: 40.11 kB / 357.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.1032, allocations: 4 kB / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.1033, allocations: 35.81 kB / 357.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.1034, allocations: 4.703 kB / 357.6 MB, free: 12.46 MB / 302.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.0001307/0.1035, allocations: 154.2 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.897e-05/0.1035, allocations: 15.81 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004479/0.104, allocations: 219 kB / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.104, allocations: 4 kB / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.104, allocations: 0 / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.104, allocations: 0 / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.1043, allocations: 273.4 kB / 358.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1043, allocations: 0 / 358.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1044, allocations: 23.92 kB / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1044, allocations: 0 / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.1044, allocations: 4.094 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.1044, allocations: 7.938 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1044, allocations: 4 kB / 358.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003713/0.1048, allocations: 225.6 kB / 358.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.926e-05/0.1049, allocations: 92.92 kB / 358.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.1049, allocations: 7.984 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.1051, allocations: 11.98 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.644e-05/0.1051, allocations: 27.91 kB / 358.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.1051, allocations: 4 kB / 358.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001129/0.1053, allocations: 148.5 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1053, allocations: 0 / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002549/0.1055, allocations: 39.84 kB / 358.9 MB, free: 11.12 MB / 302.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.0006731/0.1062, allocations: 0.7757 MB / 359.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003654/0.1066, allocations: 175.8 kB / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1066, allocations: 0 / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.1068, allocations: 84.27 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.1071, allocations: 51.89 kB / 360 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002412/0.1096, allocations: 2.181 MB / 362.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002618/0.1098, allocations: 0.7358 MB / 362.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.11, allocations: 33.52 kB / 362.9 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.524e-05/0.11, allocations: 55.42 kB / 363 MB, free: 6.844 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1101, allocations: 0 / 363 MB, free: 6.844 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.1299, allocations: 4.042 MB / 367 MB, free: 2.871 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.184/7.314, allocations: 4.969 kB / 367 MB, free: 2.867 MB / 302.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