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.001198/0.001198, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 200.6 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.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 59.91 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2368, allocations: 50.54 MB / 408.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002646/0.2395, allocations: 1.881 MB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.2405, allocations: 0.6466 MB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.75e-05/0.2406, allocations: 7.938 kB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.2407, allocations: 23.72 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.2409, allocations: 35.66 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.2411, allocations: 83.78 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001982/0.2413, allocations: 163.4 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.2415, allocations: 80.19 kB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.2417, allocations: 75.69 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.2418, allocations: 79.56 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.945e-05/0.2418, allocations: 15.98 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.795e-05/0.2419, allocations: 20 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.385e-05/0.242, allocations: 43.84 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.158e-05/0.2421, allocations: 87.47 kB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.2423, allocations: 190.2 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.2423, allocations: 0 / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2423, allocations: 0 / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2424, allocations: 8 kB / 412.2 MB, free: 14.13 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.0007985/0.2432, allocations: 0.5181 MB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.2432, allocations: 8.031 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.559e-05/0.2432, allocations: 50.67 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.2434, allocations: 40.78 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.2437, allocations: 236 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.2437, allocations: 12.66 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.442e-05/0.2437, allocations: 12.38 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003375/0.2441, allocations: 199.9 kB / 413.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.2441, allocations: 0 / 413.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.2441, allocations: 11.98 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.2442, allocations: 8 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/0.2445, allocations: 151.8 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.2455, allocations: 0.7702 MB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.2458, allocations: 169 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.2459, allocations: 73.8 kB / 414.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.246, allocations: 8 kB / 414.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002317/0.2462, allocations: 145 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.2462, allocations: 0 / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005545/0.2468, allocations: 257.7 kB / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.2469, allocations: 85.11 kB / 414.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.247, allocations: 211 kB / 415.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.2471, allocations: 29.7 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.921e-05/0.2471, allocations: 144.3 kB / 415.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.727e-05/0.2472, allocations: 43.64 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.284e-05/0.2473, allocations: 41.7 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.2474, allocations: 338.8 kB / 415.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.2475, allocations: 71.95 kB / 415.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.2477, allocations: 122.8 kB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/0.248, allocations: 199.3 kB / 416.1 MB, free: 9.902 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.248, allocations: 4 kB / 416.1 MB, free: 9.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004106/0.2485, allocations: 245.2 kB / 416.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.2485, allocations: 4 kB / 416.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2485, allocations: 4 kB / 416.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.2485, allocations: 0 / 416.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.2487, allocations: 43.91 kB / 416.4 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.2487, allocations: 4.062 kB / 416.4 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.2489, allocations: 28.05 kB / 416.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.2489, allocations: 16 kB / 416.4 MB, free: 9.555 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.0001189/0.249, allocations: 145.8 kB / 416.6 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.25e-05/0.249, allocations: 27.83 kB / 416.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000423/0.2495, allocations: 210.9 kB / 416.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2495, allocations: 4 kB / 416.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2495, allocations: 0 / 416.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2495, allocations: 0 / 416.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002415/0.2498, allocations: 273.4 kB / 417.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2498, allocations: 4 kB / 417.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.2499, allocations: 31.91 kB / 417.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.2499, allocations: 0 / 417.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.2499, allocations: 4 kB / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.2499, allocations: 4 kB / 417.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.2499, allocations: 0 / 417.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/0.2503, allocations: 229.6 kB / 417.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.983e-05/0.2504, allocations: 93.02 kB / 417.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.2504, allocations: 4 kB / 417.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.2506, allocations: 15.97 kB / 417.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.363e-05/0.2506, allocations: 19.92 kB / 417.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.2506, allocations: 7.984 kB / 417.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.2507, allocations: 144.7 kB / 417.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2508, allocations: 4 kB / 417.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002576/0.251, allocations: 39.89 kB / 417.7 MB, free: 8.215 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.0006192/0.2516, allocations: 0.7653 MB / 418.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000379/0.252, allocations: 179.1 kB / 418.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.252, allocations: 0 / 418.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.2522, allocations: 79.89 kB / 418.7 MB, free: 7.164 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.2526, allocations: 50.36 kB / 418.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/0.2549, allocations: 2.187 MB / 420.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.2552, allocations: 0.7358 MB / 421.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.2553, allocations: 29.64 kB / 421.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.328e-05/0.2554, allocations: 67.34 kB / 421.7 MB, free: 3.941 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2554, allocations: 3.938 kB / 421.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.2747, allocations: 4.142 MB / 425.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.607/7.882, allocations: 12.42 kB / 425.9 MB, free: 15.86 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.0.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