Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",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.001577/0.001577, allocations: 107.9 kB / 16.92 MB, free: 5.895 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.001909/0.001909, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.095/2.095, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.001581, allocations: 50.08 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1574, allocations: 49.45 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.007375/0.1649, allocations: 2.789 MB / 353 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.1673, allocations: 0.7515 MB / 353.7 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003084/0.1676, allocations: 4 kB / 353.7 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003839/0.1681, allocations: 59.45 kB / 353.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005335/0.1686, allocations: 95.17 kB / 353.9 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005671/0.1692, allocations: 111.8 kB / 354 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007412/0.17, allocations: 382.5 kB / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004342/0.1704, allocations: 134.9 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004288/0.1709, allocations: 159.4 kB / 354.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004097/0.1713, allocations: 167.2 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.1715, allocations: 32 kB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.1716, allocations: 32 kB / 354.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.1717, allocations: 75.75 kB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003202/0.1721, allocations: 171.1 kB / 355.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006692/0.1728, allocations: 386.8 kB / 355.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.1728, allocations: 3.984 kB / 355.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1728, allocations: 0 / 355.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.876e-05/0.1728, allocations: 4 kB / 355.5 MB, free: 14.96 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.002/0.1749, allocations: 0.6354 MB / 356.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/0.1749, allocations: 8.031 kB / 356.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001266/0.1751, allocations: 74.72 kB / 356.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.1752, allocations: 32.56 kB / 356.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005022/0.1757, allocations: 268.3 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.894e-05/0.1758, allocations: 25.03 kB / 356.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.465e-05/0.1759, allocations: 32.38 kB / 356.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.177, allocations: 294.2 kB / 356.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.177, allocations: 0 / 356.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/0.1771, allocations: 8 kB / 356.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.058e-05/0.1771, allocations: 8 kB / 356.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/0.1783, allocations: 258.4 kB / 357.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003015/0.1813, allocations: 1.124 MB / 358.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007523/0.1821, allocations: 161.2 kB / 358.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/0.1825, allocations: 60.83 kB / 358.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.023e-05/0.1825, allocations: 7.984 kB / 358.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/0.1826, allocations: 42.5 kB / 358.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 3.236e-06/0.1826, allocations: 0 / 358.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.003994/0.1866, allocations: 0.5857 MB / 359.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.1867, allocations: 63.28 kB / 359.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005101/0.1872, allocations: 270.4 kB / 359.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.1873, allocations: 29.7 kB / 359.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.1875, allocations: 219.5 kB / 359.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.1877, allocations: 78.89 kB / 359.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.1879, allocations: 61.61 kB / 359.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.1881, allocations: 334.8 kB / 360.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005354/0.1886, allocations: 99.92 kB / 360.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006914/0.1893, allocations: 196 kB / 360.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.1906, allocations: 307 kB / 360.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.1906, allocations: 0 / 360.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001673/0.1923, allocations: 393 kB / 361.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.1923, allocations: 8 kB / 361.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.1924, allocations: 4 kB / 361.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004236/0.1928, allocations: 61.89 kB / 361.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006262/0.1935, allocations: 71.89 kB / 361.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003567/0.197, allocations: 2.844 MB / 364.1 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005313/0.1976, allocations: 15.98 kB / 364.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.1977, allocations: 20.06 kB / 364.1 MB, free: 5.68 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.0005412/0.1982, allocations: 157.6 kB / 364.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.1984, allocations: 23.72 kB / 364.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.1985, allocations: 30.17 kB / 364.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.1985, allocations: 4 kB / 364.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.1986, allocations: 0 / 364.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.1986, allocations: 0 / 364.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007222/0.1993, allocations: 337.3 kB / 364.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.822e-06/0.1994, allocations: 4 kB / 364.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004401/0.1998, allocations: 39.91 kB / 364.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003238/0.2001, allocations: 49.67 kB / 364.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.063e-05/0.2002, allocations: 12 kB / 364.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003676/0.2039, allocations: 2.837 MB / 367.6 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2039, allocations: 0 / 367.6 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.2054, allocations: 372.7 kB / 368 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.2055, allocations: 100.8 kB / 368.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.095e-05/0.2056, allocations: 4 kB / 368.1 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004165/0.2061, allocations: 15.98 kB / 368.1 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.2062, allocations: 15.97 kB / 368.1 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.2062, allocations: 8 kB / 368.1 MB, free: 1.312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003394/0.2066, allocations: 182 kB / 368.3 MB, free: 1.133 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.2066, allocations: 0 / 368.3 MB, free: 1.133 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008132/0.2074, allocations: 76 kB / 368.3 MB, free: 1.059 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.001791/0.2092, allocations: 0.9184 MB / 369.3 MB, free: 112 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.2342/0.4435, allocations: 479.7 kB / 369.7 MB, free: 25.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.4435, allocations: 0 / 369.7 MB, free: 25.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008177/0.4444, allocations: 349.5 kB / 370.1 MB, free: 25.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006959/0.4451, allocations: 27.36 kB / 370.1 MB, free: 25.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006869/0.452, allocations: 2.949 MB / 373.1 MB, free: 23.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004129/0.4524, allocations: 0.7762 MB / 373.8 MB, free: 22.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002904/0.4528, allocations: 29 kB / 373.9 MB, free: 22.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002346/0.453, allocations: 99.62 kB / 374 MB, free: 22.8 MB / 302.1 MB Notification: Performance of SimCode: time 1.844e-06/0.453, allocations: 0 / 374 MB, free: 22.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2489/0.702, allocations: 5.423 MB / 379.4 MB, free: 22.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/15.25, allocations: 1.125 kB / 379.4 MB, free: 22.25 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_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_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches