Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.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.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections",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.002019/0.002018, allocations: 107.5 kB / 16.92 MB, free: 6.332 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.002853/0.002853, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.292/2.292, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 47.55 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1988, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections): time 0.01216/0.2111, allocations: 4.165 MB / 354.3 MB, free: 132 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005924/0.2171, allocations: 1.635 MB / 356 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009479/0.2181, allocations: 12 kB / 356 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004437/0.2226, allocations: 1.008 MB / 357 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001681/0.2243, allocations: 242.2 kB / 357.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003381/0.2277, allocations: 0.7979 MB / 358 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001571/0.2293, allocations: 0.6144 MB / 358.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001685/0.231, allocations: 0.4957 MB / 359.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008774/0.2319, allocations: 267 kB / 359.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009574/0.2329, allocations: 334.7 kB / 359.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002479/0.2331, allocations: 56 kB / 359.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001317/0.2345, allocations: 263.8 kB / 360 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002767/0.2348, allocations: 139.5 kB / 360.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008474/0.2356, allocations: 306.5 kB / 360.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002429/0.2381, allocations: 0.915 MB / 361.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.2381, allocations: 0 / 361.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.2381, allocations: 0 / 361.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.148e-05/0.2382, allocations: 0 / 361.4 MB, free: 9.047 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.007451/0.2456, allocations: 1.214 MB / 362.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.586e-05/0.2458, allocations: 12.03 kB / 362.6 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003456/0.2461, allocations: 106.7 kB / 362.7 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002511/0.2487, allocations: 172.1 kB / 362.9 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005584/0.2492, allocations: 241.2 kB / 363.1 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.2494, allocations: 54.38 kB / 363.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002785/0.2497, allocations: 64.38 kB / 363.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002736/0.2525, allocations: 0.7151 MB / 364 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.935e-05/0.2525, allocations: 3.938 kB / 364 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/0.2527, allocations: 32 kB / 364 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.559e-05/0.2527, allocations: 16 kB / 364 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002519/0.2552, allocations: 0.5947 MB / 364.6 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006793/0.2621, allocations: 2.324 MB / 366.9 MB, free: 3.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003034/0.2651, allocations: 1.625 MB / 368.6 MB, free: 1.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.2662, allocations: 279.3 kB / 368.8 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002173/0.2665, allocations: 93.66 kB / 368.9 MB, free: 1.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.748e-05/0.2665, allocations: 47.11 kB / 369 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 5.66e-06/0.2666, allocations: 0 / 369 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.003182/0.2698, allocations: 0.6977 MB / 369.7 MB, free: 272 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/0.2699, allocations: 111.4 kB / 369.8 MB, free: 136 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2796/0.5495, allocations: 263.3 kB / 370 MB, free: 25.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001799/0.5498, allocations: 34.89 kB / 370.1 MB, free: 25.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/0.55, allocations: 261.1 kB / 370.3 MB, free: 25.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002671/0.5503, allocations: 220.4 kB / 370.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003268/0.5507, allocations: 119.4 kB / 370.6 MB, free: 25.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.5508, allocations: 349 kB / 371 MB, free: 24.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009207/0.5517, allocations: 212.4 kB / 371.2 MB, free: 24.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009824/0.5527, allocations: 301.8 kB / 371.5 MB, free: 24.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001798/0.5546, allocations: 0.5154 MB / 372 MB, free: 24.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.5546, allocations: 1.5 kB / 372 MB, free: 24.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00247/0.5571, allocations: 0.625 MB / 372.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/0.5571, allocations: 10.05 kB / 372.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.5571, allocations: 1.891 kB / 372.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.28e-05/0.5572, allocations: 8.594 kB / 372.7 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.5585, allocations: 164.5 kB / 372.8 MB, free: 24.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.412e-05/0.5585, allocations: 4.734 kB / 372.8 MB, free: 24.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009163/0.5594, allocations: 73.06 kB / 372.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.5596, allocations: 28.06 kB / 372.9 MB, free: 24.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0005223/0.5601, allocations: 183.4 kB / 373.1 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.5603, allocations: 40.12 kB / 373.1 MB, free: 24.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002305/0.5626, allocations: 0.6085 MB / 373.7 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.5627, allocations: 6.938 kB / 373.7 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.5627, allocations: 1.312 kB / 373.8 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.5627, allocations: 3.594 kB / 373.8 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003743/0.5665, allocations: 1.295 MB / 375 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/0.5665, allocations: 0.6094 kB / 375 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009864/0.5675, allocations: 129.8 kB / 375.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-05/0.5675, allocations: 2.75 kB / 375.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.919e-05/0.5676, allocations: 17.11 kB / 375.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.227e-06/0.5676, allocations: 7.125 kB / 375.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5676, allocations: 0 / 375.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/0.5705, allocations: 0.9803 MB / 376.2 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.5707, allocations: 119.3 kB / 376.3 MB, free: 22.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.5708, allocations: 14.14 kB / 376.3 MB, free: 22.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007098/0.5715, allocations: 31.53 kB / 376.3 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.5717, allocations: 40.52 kB / 376.4 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-05/0.5718, allocations: 19.02 kB / 376.4 MB, free: 22.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003657/0.5722, allocations: 190.6 kB / 376.6 MB, free: 22.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.5722, allocations: 2.594 kB / 376.6 MB, free: 22.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001143/0.5733, allocations: 173.7 kB / 376.8 MB, free: 22.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (source.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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 Backend phase and start with SimCode phase: time 0.003346/0.5767, allocations: 1.567 MB / 378.3 MB, free: 21.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002733/0.5795, allocations: 0.5682 MB / 378.9 MB, free: 21.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.5795, allocations: 0 / 378.9 MB, free: 21.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009046/0.5804, allocations: 270.9 kB / 379.2 MB, free: 21.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.5815, allocations: 51.92 kB / 379.2 MB, free: 21.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.5927, allocations: 4.253 MB / 383.5 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005788/0.5933, allocations: 0.8408 MB / 384.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008659/0.5942, allocations: 81.08 kB / 384.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004213/0.5946, allocations: 186.4 kB / 384.6 MB, free: 17.67 MB / 302.1 MB Notification: Performance of SimCode: time 1.342e-06/0.5946, allocations: 1.125 kB / 384.6 MB, free: 17.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05464/0.6493, allocations: 9.17 MB / 393.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.47, allocations: 8.438 kB / 393.7 MB, free: 14.37 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CylinderSections.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CylinderSections/CylinderSections.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CylinderSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches