Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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.00156/0.001561, allocations: 105.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.001902/0.001902, 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.073/2.073, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 49.55 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.135, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005986/0.141, allocations: 3.382 MB / 353.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002833/0.1439, allocations: 1.454 MB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004336/0.1444, allocations: 8 kB / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004592/0.149, allocations: 2.655 MB / 357.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001121/0.1502, allocations: 178.7 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.1517, allocations: 310.7 kB / 358.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003869/0.1556, allocations: 1.794 MB / 359.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004537/0.156, allocations: 139.5 kB / 360.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008381/0.1569, allocations: 305 kB / 360.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007985/0.1577, allocations: 326.8 kB / 360.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002658/0.158, allocations: 44 kB / 360.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005191/0.1585, allocations: 83.98 kB / 360.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.1597, allocations: 0.853 MB / 361.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001577/0.1613, allocations: 0.9268 MB / 362.6 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003645/0.1649, allocations: 2.589 MB / 365.2 MB, free: 5.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.165, allocations: 0 / 365.2 MB, free: 5.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.165, allocations: 0 / 365.2 MB, free: 5.242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.289e-05/0.1651, allocations: 0 / 365.2 MB, free: 5.242 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.008504/0.1736, allocations: 2.794 MB / 368 MB, free: 2.383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.999e-05/0.1737, allocations: 11.89 kB / 368 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002299/0.174, allocations: 74.72 kB / 368.1 MB, free: 2.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.175, allocations: 285.3 kB / 368.3 MB, free: 2.008 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006129/0.1812, allocations: 1.816 MB / 370.2 MB, free: 140 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.1814, allocations: 66.95 kB / 370.2 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004036/0.1818, allocations: 51.89 kB / 370.3 MB, free: 16 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3125/0.4944, allocations: 388.6 kB / 370.7 MB, free: 24.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.127e-05/0.4945, allocations: 0.5938 kB / 370.7 MB, free: 24.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.341e-05/0.4946, allocations: 13.97 kB / 370.7 MB, free: 24.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.4947, allocations: 8.938 kB / 370.7 MB, free: 24.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.4962, allocations: 332.3 kB / 371 MB, free: 24.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009624/0.5058, allocations: 2.903 MB / 373.9 MB, free: 23.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.5072, allocations: 318.5 kB / 374.2 MB, free: 23.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007172/0.5079, allocations: 166.4 kB / 374.4 MB, free: 23.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.861e-05/0.5081, allocations: 8.406 kB / 374.4 MB, free: 23.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.466e-05/0.5081, allocations: 38.92 kB / 374.4 MB, free: 23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 6.191e-06/0.5082, allocations: 0 / 374.4 MB, free: 23 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.01148/0.5196, allocations: 2.392 MB / 376.8 MB, free: 21.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.978e-05/0.5198, allocations: 86.33 kB / 376.9 MB, free: 21.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0192/0.539, allocations: 5.434 MB / 382.3 MB, free: 20 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/0.5392, allocations: 36.89 kB / 382.4 MB, free: 19.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002261/0.5415, allocations: 1.206 MB / 383.6 MB, free: 19.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/0.5418, allocations: 164.5 kB / 383.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002904/0.5421, allocations: 90.03 kB / 383.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.5422, allocations: 324.2 kB / 384.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007157/0.543, allocations: 145.6 kB / 384.3 MB, free: 18.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007164/0.5437, allocations: 220.2 kB / 384.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.5451, allocations: 389 kB / 384.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.5451, allocations: 0 / 384.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003056/0.5482, allocations: 0.6909 MB / 385.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.5482, allocations: 6.125 kB / 385.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.5482, allocations: 2.125 kB / 385.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.442e-05/0.5483, allocations: 3.875 kB / 385.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009594/0.5493, allocations: 124.3 kB / 385.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.698e-05/0.5493, allocations: 5.281 kB / 385.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.5507, allocations: 20.03 kB / 385.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.2e-05/0.5508, allocations: 18.53 kB / 385.8 MB, free: 17.79 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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.002392/0.5532, allocations: 0.9171 MB / 386.7 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/0.5543, allocations: 270 kB / 386.9 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003177/0.5575, allocations: 0.7982 MB / 387.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/0.5576, allocations: 5.406 kB / 387.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.5576, allocations: 1.031 kB / 387.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.5576, allocations: 3.562 kB / 387.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00488/0.5625, allocations: 1.462 MB / 389.2 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/0.5626, allocations: 1.375 kB / 389.2 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008835/0.5635, allocations: 99.09 kB / 389.3 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000632/0.5641, allocations: 107.6 kB / 389.4 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-05/0.5642, allocations: 20.05 kB / 389.4 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007506/0.565, allocations: 0.6312 MB / 390.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.565, allocations: 0 / 390.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003358/0.5684, allocations: 1.08 MB / 391.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001732/0.5701, allocations: 492.4 kB / 391.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007215/0.5709, allocations: 7.656 kB / 391.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/0.5722, allocations: 23.27 kB / 391.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.5723, allocations: 30.45 kB / 391.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.356e-05/0.5724, allocations: 18.89 kB / 391.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.008709/0.5811, allocations: 3.967 MB / 395.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.203e-06/0.5812, allocations: 0 / 395.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001733/0.5829, allocations: 204 kB / 395.9 MB, free: 10.7 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005098/0.5881, allocations: 1.935 MB / 397.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.5898, allocations: 415 kB / 398.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5898, allocations: 0 / 398.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007275/0.5905, allocations: 213.1 kB / 398.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002961/0.5935, allocations: 195 kB / 398.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08175/0.6753, allocations: 22.35 MB / 421 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004743/0.6801, allocations: 1.814 MB / 422.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001531/0.6817, allocations: 275.6 kB / 423 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002963/0.6847, allocations: 0.9327 MB / 424 MB, free: 13.32 MB / 334.1 MB Notification: Performance of SimCode: time 4.088e-06/0.6848, allocations: 0 / 424 MB, free: 13.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1443/0.8291, allocations: 38.08 MB / 462 MB, free: 7.559 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.18/20.01, allocations: 16.17 kB / 462.1 MB, free: 7.543 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches