Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",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.001742/0.001742, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.002142/0.002142, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.05/2.05, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 47.2 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1455, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.007728/0.1533, allocations: 2.738 MB / 352.9 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.1557, allocations: 0.8722 MB / 353.8 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003751/0.1561, allocations: 4 kB / 353.8 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004167/0.1566, allocations: 63.5 kB / 353.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006205/0.1573, allocations: 103.2 kB / 353.9 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004545/0.1577, allocations: 91.8 kB / 354 MB, free: 440 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007875/0.1585, allocations: 354.6 kB / 354.4 MB, free: 84 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003483/0.1589, allocations: 109.7 kB / 354.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003653/0.1593, allocations: 135.5 kB / 354.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004049/0.1597, allocations: 151.3 kB / 354.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.1598, allocations: 28 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.1599, allocations: 32 kB / 354.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.1601, allocations: 67.75 kB / 354.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002964/0.1604, allocations: 151.3 kB / 355 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006404/0.161, allocations: 359 kB / 355.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.161, allocations: 4 kB / 355.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.161, allocations: 4 kB / 355.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.1611, allocations: 0 / 355.4 MB, free: 15.06 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001808/0.1629, allocations: 0.5963 MB / 356 MB, free: 14.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.001e-05/0.163, allocations: 19.83 kB / 356 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.1631, allocations: 66.66 kB / 356.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.1633, allocations: 36.56 kB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004876/0.1638, allocations: 248.4 kB / 356.4 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.965e-05/0.1638, allocations: 20.94 kB / 356.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.109e-05/0.1639, allocations: 28.36 kB / 356.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000785/0.1647, allocations: 248.9 kB / 356.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.1647, allocations: 0 / 356.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.673e-05/0.1648, allocations: 19.98 kB / 356.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.1648, allocations: 8 kB / 356.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007023/0.1655, allocations: 206.1 kB / 356.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002508/0.168, allocations: 1.017 MB / 357.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000635/0.1687, allocations: 206.5 kB / 358.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000361/0.1691, allocations: 112.8 kB / 358.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.432e-05/0.1691, allocations: 0 / 358.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.53e-05/0.1692, allocations: 42.97 kB / 358.3 MB, free: 12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.1692, allocations: 0 / 358.3 MB, free: 12 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.007177/0.1764, allocations: 1.537 MB / 359.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.1764, allocations: 55.41 kB / 359.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000373/0.1768, allocations: 228.9 kB / 360.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.1769, allocations: 29.7 kB / 360.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.1771, allocations: 184.1 kB / 360.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.1773, allocations: 118.3 kB / 360.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.1775, allocations: 69.97 kB / 360.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.1777, allocations: 338.8 kB / 360.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004014/0.1781, allocations: 108.7 kB / 360.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004184/0.1785, allocations: 165.5 kB / 361.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008127/0.1793, allocations: 284 kB / 361.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1794, allocations: 0 / 361.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002268/0.1816, allocations: 0.5293 MB / 361.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.1817, allocations: 11.94 kB / 361.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1817, allocations: 0 / 361.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00172/0.1834, allocations: 249.5 kB / 362.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003833/0.1838, allocations: 63.84 kB / 362.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007137/0.191, allocations: 4.114 MB / 366.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003421/0.1913, allocations: 20.08 kB / 366.3 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-05/0.1914, allocations: 16 kB / 366.3 MB, free: 3.469 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002517/0.1917, allocations: 145.7 kB / 366.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.1918, allocations: 27.98 kB / 366.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.1919, allocations: 46.95 kB / 366.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1919, allocations: 0 / 366.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.1919, allocations: 7.938 kB / 366.6 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.192, allocations: 0 / 366.6 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003098/0.1951, allocations: 0.9861 MB / 367.5 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1951, allocations: 0 / 367.5 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.1954, allocations: 47.91 kB / 367.6 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001675/0.1971, allocations: 233.6 kB / 367.8 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.1971, allocations: 12 kB / 367.8 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2654/0.4625, allocations: 4.116 MB / 371.9 MB, free: 23.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.4626, allocations: 4.688 kB / 371.9 MB, free: 23.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002993/0.4656, allocations: 0.7316 MB / 372.7 MB, free: 22.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.78e-05/0.4657, allocations: 102.5 kB / 372.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.181e-05/0.4658, allocations: 6.906 kB / 372.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.4662, allocations: 13.09 kB / 372.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.4664, allocations: 33.27 kB / 372.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.694e-05/0.4664, allocations: 11.86 kB / 372.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002404/0.4667, allocations: 164.9 kB / 373 MB, free: 22.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4667, allocations: 0 / 373 MB, free: 22.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001191/0.4679, allocations: 106.7 kB / 373.1 MB, free: 22.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00321/0.4711, allocations: 1.282 MB / 374.4 MB, free: 21.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.4728, allocations: 0.5754 MB / 375 MB, free: 21.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4728, allocations: 0 / 375 MB, free: 21.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008711/0.4737, allocations: 431.3 kB / 375.4 MB, free: 21.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006218/0.4743, allocations: 26.45 kB / 375.4 MB, free: 21.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009029/0.4834, allocations: 3.338 MB / 378.8 MB, free: 19.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.4838, allocations: 0.777 MB / 379.5 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.484, allocations: 16.77 kB / 379.5 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.4842, allocations: 95.23 kB / 379.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4842, allocations: 4 kB / 379.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05877/0.543, allocations: 8.255 MB / 387.9 MB, free: 16.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.64/19.18, allocations: 11.86 kB / 387.9 MB, free: 16.23 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 4e-05 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches