Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",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.001604/0.001604, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001929/0.001929, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.133/2.133, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 45.33 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1541, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.006441/0.1606, allocations: 2.811 MB / 353 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.1627, allocations: 0.7555 MB / 353.7 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002177/0.1629, allocations: 7.938 kB / 353.8 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003221/0.1633, allocations: 63.44 kB / 353.8 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004229/0.1637, allocations: 95.19 kB / 353.9 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.1642, allocations: 111.8 kB / 354 MB, free: 468 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005661/0.1648, allocations: 406.3 kB / 354.4 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000361/0.1652, allocations: 127 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003339/0.1655, allocations: 159.3 kB / 354.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003149/0.1658, allocations: 175.2 kB / 354.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.722e-05/0.1659, allocations: 36 kB / 354.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.762e-05/0.166, allocations: 32 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.1662, allocations: 79.73 kB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002518/0.1664, allocations: 171.1 kB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005668/0.167, allocations: 398.8 kB / 355.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.167, allocations: 0 / 355.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.167, allocations: 0 / 355.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1671, allocations: 0 / 355.6 MB, free: 14.9 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001831/0.1689, allocations: 0.6496 MB / 356.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.169, allocations: 8.031 kB / 356.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.1691, allocations: 70.72 kB / 356.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.1692, allocations: 44.41 kB / 356.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000495/0.1697, allocations: 280.6 kB / 356.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.257e-05/0.1698, allocations: 21.03 kB / 356.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.482e-05/0.1699, allocations: 32.38 kB / 356.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009678/0.1709, allocations: 290.2 kB / 356.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.1709, allocations: 0 / 356.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.903e-05/0.171, allocations: 12 kB / 357 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.171, allocations: 8 kB / 357 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.1721, allocations: 258.5 kB / 357.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002778/0.1749, allocations: 1.12 MB / 358.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006524/0.1756, allocations: 154.5 kB / 358.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.176, allocations: 72.81 kB / 358.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.176, allocations: 4 kB / 358.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.1761, allocations: 30.56 kB / 358.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.996e-06/0.1761, allocations: 4 kB / 358.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.003496/0.1796, allocations: 0.59 MB / 359.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.1797, allocations: 55.41 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004957/0.1802, allocations: 286.5 kB / 359.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.1802, allocations: 29.7 kB / 359.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.1805, allocations: 223.5 kB / 359.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.841e-05/0.1806, allocations: 78.84 kB / 359.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.1808, allocations: 65.61 kB / 359.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.181, allocations: 342.8 kB / 360.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005021/0.1815, allocations: 103.9 kB / 360.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000608/0.1821, allocations: 188 kB / 360.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.1832, allocations: 307 kB / 360.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.1832, allocations: 7.938 kB / 360.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001547/0.1847, allocations: 397.2 kB / 361.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.1848, allocations: 4 kB / 361.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.1848, allocations: 7.938 kB / 361.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000429/0.1853, allocations: 65.67 kB / 361.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005684/0.1859, allocations: 71.89 kB / 361.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003391/0.1893, allocations: 2.833 MB / 364.2 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005793/0.1899, allocations: 23.98 kB / 364.2 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.414e-05/0.19, allocations: 20.05 kB / 364.2 MB, free: 5.555 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003152/0.1903, allocations: 153.7 kB / 364.4 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.731e-05/0.1904, allocations: 19.72 kB / 364.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.791e-05/0.1905, allocations: 34.17 kB / 364.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.1905, allocations: 4 kB / 364.4 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.1905, allocations: 0 / 364.4 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.1906, allocations: 4 kB / 364.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006193/0.1912, allocations: 333.4 kB / 364.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1912, allocations: 8 kB / 364.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.1916, allocations: 39.91 kB / 364.8 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000276/0.1919, allocations: 57.81 kB / 364.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.1919, allocations: 7.984 kB / 364.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002946/0.1949, allocations: 2.833 MB / 367.7 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1949, allocations: 0 / 367.7 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.1962, allocations: 382.2 kB / 368.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.1964, allocations: 100.7 kB / 368.2 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.673e-05/0.1964, allocations: 8 kB / 368.2 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003689/0.1968, allocations: 11.98 kB / 368.2 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.197, allocations: 19.97 kB / 368.2 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-05/0.197, allocations: 8 kB / 368.2 MB, free: 1.176 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000338/0.1973, allocations: 194 kB / 368.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1974, allocations: 4 kB / 368.4 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007898/0.1982, allocations: 76 kB / 368.5 MB, free: 0.9062 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2783/0.4764, allocations: 0.9076 MB / 369.4 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.4784, allocations: 484 kB / 369.9 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.4784, allocations: 0.625 kB / 369.9 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000819/0.4792, allocations: 345.8 kB / 370.2 MB, free: 25.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007517/0.48, allocations: 31.77 kB / 370.3 MB, free: 25.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007203/0.4872, allocations: 3.028 MB / 373.3 MB, free: 23.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.4878, allocations: 0.7723 MB / 374.1 MB, free: 22.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003174/0.4881, allocations: 29.16 kB / 374.1 MB, free: 22.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002384/0.4884, allocations: 98.48 kB / 374.2 MB, free: 22.75 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4884, allocations: 0 / 374.2 MB, free: 22.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05078/0.5392, allocations: 5.584 MB / 379.8 MB, free: 22.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.93/15.47, allocations: 5.953 kB / 379.8 MB, free: 22.18 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches