Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001695/0.001695, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001963/0.001963, allocations: 204.7 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 71.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2639, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00352/0.2675, allocations: 1.882 MB / 410.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.2689, allocations: 0.6466 MB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.269, allocations: 3.938 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.2691, allocations: 23.73 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.2694, allocations: 35.66 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003271/0.2697, allocations: 79.78 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002572/0.27, allocations: 171.4 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/0.2702, allocations: 76.17 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.2704, allocations: 67.72 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.2705, allocations: 87.55 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.2706, allocations: 12 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.034e-05/0.2707, allocations: 23.98 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.103e-05/0.2708, allocations: 43.84 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.917e-05/0.2709, allocations: 87.47 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003515/0.2712, allocations: 186.2 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.29e-05/0.2712, allocations: 8 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2713, allocations: 4 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.2713, allocations: 0 / 412.2 MB, free: 14.1 MB / 334.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.001014/0.2723, allocations: 0.5142 MB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.2723, allocations: 8.031 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.539e-05/0.2724, allocations: 46.75 kB / 412.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.2726, allocations: 36.78 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.2729, allocations: 240 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.273, allocations: 16.59 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.273, allocations: 12.38 kB / 413 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003674/0.2734, allocations: 203.9 kB / 413.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.2734, allocations: 4 kB / 413.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.2734, allocations: 8 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.2734, allocations: 4 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003455/0.2738, allocations: 147.8 kB / 413.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.275, allocations: 0.7741 MB / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003867/0.2754, allocations: 165 kB / 414.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.2756, allocations: 73.81 kB / 414.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.2756, allocations: 11.98 kB / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.2759, allocations: 141 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.2759, allocations: 0 / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006115/0.2765, allocations: 265.7 kB / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.2766, allocations: 81.11 kB / 414.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.2768, allocations: 207.1 kB / 415.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.2768, allocations: 33.7 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.2769, allocations: 140.3 kB / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.719e-05/0.277, allocations: 51.62 kB / 415.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.235e-05/0.2771, allocations: 41.7 kB / 415.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.2773, allocations: 338.8 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.2775, allocations: 67.95 kB / 415.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.2777, allocations: 118.8 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003856/0.2781, allocations: 202.7 kB / 416.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.2781, allocations: 4 kB / 416.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004419/0.2785, allocations: 245.3 kB / 416.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.2786, allocations: 4.094 kB / 416.3 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2786, allocations: 7.938 kB / 416.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.2786, allocations: 0 / 416.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.2788, allocations: 39.91 kB / 416.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.2788, allocations: 192 / 416.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/0.279, allocations: 35.88 kB / 416.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.279, allocations: 4 kB / 416.4 MB, free: 9.531 MB / 334.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.0001619/0.2792, allocations: 153.7 kB / 416.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.2792, allocations: 16.02 kB / 416.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004647/0.2797, allocations: 218.8 kB / 416.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.2797, allocations: 8 kB / 416.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.2797, allocations: 0 / 416.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.2797, allocations: 0 / 416.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003511/0.2801, allocations: 273.4 kB / 417.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2801, allocations: 0 / 417.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.2802, allocations: 27.92 kB / 417.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2802, allocations: 0 / 417.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.2802, allocations: 0 / 417.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.2803, allocations: 8 kB / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2803, allocations: 0 / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004268/0.2807, allocations: 230.5 kB / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.2808, allocations: 101 kB / 417.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.2809, allocations: 0 / 417.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.281, allocations: 15.98 kB / 417.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.383e-05/0.2811, allocations: 19.91 kB / 417.5 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.2811, allocations: 12 kB / 417.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001446/0.2812, allocations: 140.7 kB / 417.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2812, allocations: 0 / 417.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.2815, allocations: 47.88 kB / 417.6 MB, free: 8.184 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.0008744/0.2824, allocations: 0.7746 MB / 418.4 MB, free: 7.379 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004485/0.2829, allocations: 171.8 kB / 418.6 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2829, allocations: 4 kB / 418.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.283, allocations: 79.89 kB / 418.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.2834, allocations: 44.47 kB / 418.7 MB, free: 7.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.2863, allocations: 2.182 MB / 420.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.2868, allocations: 0.7319 MB / 421.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.287, allocations: 41.5 kB / 421.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.912e-05/0.2871, allocations: 55.53 kB / 421.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.2871, allocations: 7.875 kB / 421.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02663/0.3137, allocations: 4.135 MB / 425.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.511/8.824, allocations: 16.09 kB / 425.9 MB, free: 15.84 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches