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.001061/0.001061, allocations: 104.8 kB / 17.06 MB, free: 5.785 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.00107/0.00107, allocations: 195 kB / 18 MB, free: 4.945 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.296/1.296, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009514/0.0009514, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2223, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002907/0.2252, allocations: 1.868 MB / 402.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.2263, allocations: 0.5882 MB / 402.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.2264, allocations: 0 / 402.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.2265, allocations: 27.67 kB / 402.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.2267, allocations: 35.66 kB / 402.7 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.227, allocations: 71.8 kB / 402.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.2272, allocations: 163.4 kB / 403 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.2274, allocations: 69.62 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.2275, allocations: 79.66 kB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.2277, allocations: 75.61 kB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.2277, allocations: 16 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.836e-05/0.2278, allocations: 23.98 kB / 403.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.073e-05/0.2279, allocations: 39.84 kB / 403.3 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.303e-05/0.228, allocations: 79.48 kB / 403.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002483/0.2282, allocations: 182.2 kB / 403.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2282, allocations: 0 / 403.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2282, allocations: 0 / 403.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2283, allocations: 0 / 403.5 MB, free: 5.508 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.0008336/0.2291, allocations: 0.5143 MB / 404 MB, free: 4.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.2291, allocations: 12.03 kB / 404.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.156e-05/0.2292, allocations: 46.73 kB / 404.1 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.613e-05/0.2293, allocations: 24.8 kB / 404.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.2295, allocations: 239.9 kB / 404.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.2296, allocations: 20.39 kB / 404.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.2296, allocations: 20 kB / 404.4 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00035/0.2299, allocations: 191.7 kB / 404.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.23, allocations: 0 / 404.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.23, allocations: 4 kB / 404.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.409e-05/0.23, allocations: 15.98 kB / 404.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002868/0.2303, allocations: 143.8 kB / 404.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.2314, allocations: 0.7701 MB / 405.5 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.2317, allocations: 165.1 kB / 405.7 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.2318, allocations: 77.8 kB / 405.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.2319, allocations: 3.938 kB / 405.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.2321, allocations: 149.2 kB / 405.9 MB, free: 2.914 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.2322, allocations: 4 kB / 405.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005871/0.2327, allocations: 249.6 kB / 406.2 MB, free: 2.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.2328, allocations: 81.11 kB / 406.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.233, allocations: 203 kB / 406.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.233, allocations: 33.7 kB / 406.5 MB, free: 2.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.2331, allocations: 144.3 kB / 406.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.792e-05/0.2332, allocations: 47.58 kB / 406.7 MB, free: 2.121 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.644e-05/0.2333, allocations: 41.7 kB / 406.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2334, allocations: 334.8 kB / 407 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.2335, allocations: 71.95 kB / 407.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.2337, allocations: 134.8 kB / 407.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003173/0.2341, allocations: 211.2 kB / 407.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2341, allocations: 0 / 407.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004201/0.2345, allocations: 245.4 kB / 407.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2345, allocations: 6.5 kB / 407.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.2345, allocations: 4 kB / 407.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.2346, allocations: 4 kB / 407.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.2347, allocations: 35.91 kB / 407.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.2348, allocations: 0 / 407.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.2349, allocations: 31.88 kB / 407.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.2349, allocations: 11.94 kB / 407.8 MB, free: 0.9453 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.0001336/0.2351, allocations: 146.3 kB / 407.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.2351, allocations: 19.91 kB / 407.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004364/0.2356, allocations: 210.9 kB / 408.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.2356, allocations: 4 kB / 408.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.2356, allocations: 7.984 kB / 408.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2356, allocations: 3.984 kB / 408.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002618/0.2359, allocations: 269.5 kB / 408.4 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2359, allocations: 0 / 408.4 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.236, allocations: 23.98 kB / 408.4 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.236, allocations: 0 / 408.4 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.236, allocations: 0 / 408.4 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.236, allocations: 4 kB / 408.4 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.2361, allocations: 3.984 kB / 408.4 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003947/0.2365, allocations: 237.7 kB / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.2365, allocations: 96.95 kB / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.733e-05/0.2366, allocations: 0 / 408.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.2367, allocations: 19.97 kB / 408.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/0.2368, allocations: 16.08 kB / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.2368, allocations: 11.88 kB / 408.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001136/0.2369, allocations: 140.6 kB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2369, allocations: 0 / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000258/0.2372, allocations: 39.95 kB / 409 MB, free: 15.61 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.0006342/0.2378, allocations: 0.7725 MB / 409.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003605/0.2382, allocations: 175.9 kB / 409.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2382, allocations: 0 / 409.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.2384, allocations: 83.83 kB / 410 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.2387, allocations: 40.61 kB / 410.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.2411, allocations: 2.177 MB / 412.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.2414, allocations: 0.7397 MB / 413 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.2415, allocations: 37.7 kB / 413 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.831e-05/0.2416, allocations: 59.36 kB / 413.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2416, allocations: 4 kB / 413.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01937/0.261, allocations: 4.11 MB / 417.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.701/7.962, allocations: 9.094 kB / 417.2 MB, free: 7.312 MB / 334.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