Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",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.001562/0.001562, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001847/0.001847, allocations: 188.2 kB / 18.66 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 52.34 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.108, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005826/0.1139, allocations: 4.312 MB / 379 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2576/0.3715, allocations: 1.619 MB / 380.6 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005487/0.3721, allocations: 10.56 kB / 380.6 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004538/0.3726, allocations: 133.9 kB / 380.7 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009862/0.3736, allocations: 368.9 kB / 381.1 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006115/0.3743, allocations: 225 kB / 381.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.3753, allocations: 0.9797 MB / 382.3 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004007/0.3757, allocations: 239.1 kB / 382.5 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000703/0.3764, allocations: 383.7 kB / 382.9 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006972/0.3772, allocations: 424.8 kB / 383.3 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000166/0.3773, allocations: 96.78 kB / 383.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004971/0.3778, allocations: 215 kB / 383.6 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.378, allocations: 198.4 kB / 383.8 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003784/0.3784, allocations: 415.9 kB / 384.2 MB, free: 8.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001548/0.38, allocations: 1.164 MB / 385.4 MB, free: 7.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.38, allocations: 0 / 385.4 MB, free: 7.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.38, allocations: 0 / 385.4 MB, free: 7.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.38, allocations: 4 kB / 385.4 MB, free: 7.91 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002572/0.3826, allocations: 1.121 MB / 386.5 MB, free: 7.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.032e-05/0.3827, allocations: 12.77 kB / 386.5 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001544/0.3828, allocations: 99.72 kB / 386.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.383, allocations: 79.41 kB / 386.7 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000928/0.384, allocations: 0.5211 MB / 387.2 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.195e-05/0.3841, allocations: 70.7 kB / 387.3 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002015/0.3843, allocations: 69.77 kB / 387.3 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.3855, allocations: 0.6065 MB / 387.9 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.3856, allocations: 0 / 387.9 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.372e-05/0.3856, allocations: 25.59 kB / 388 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/0.3856, allocations: 14.25 kB / 388 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001246/0.3869, allocations: 0.5238 MB / 388.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003559/0.3905, allocations: 2.304 MB / 390.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.3916, allocations: 470.2 kB / 391.3 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005912/0.3922, allocations: 264.2 kB / 391.5 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.3922, allocations: 8.062 kB / 391.5 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.3922, allocations: 41.42 kB / 391.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.535e-06/0.3923, allocations: 1.094 kB / 391.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.01312/0.4054, allocations: 3.567 MB / 395.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.4054, allocations: 84.75 kB / 395.2 MB, free: 2.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009207/0.4064, allocations: 0.5355 MB / 395.8 MB, free: 2.406 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.543e-05/0.4064, allocations: 36.55 kB / 395.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.4067, allocations: 321.9 kB / 396.1 MB, free: 2.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.4068, allocations: 215.5 kB / 396.3 MB, free: 1.945 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.4071, allocations: 116.2 kB / 396.4 MB, free: 1.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.4072, allocations: 370.4 kB / 396.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005451/0.4077, allocations: 242.3 kB / 397 MB, free: 1.449 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006233/0.4084, allocations: 353.7 kB / 397.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.4095, allocations: 0.6014 MB / 398 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.4095, allocations: 1.375 kB / 398 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001542/0.411, allocations: 0.7416 MB / 398.7 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.4111, allocations: 6.688 kB / 398.7 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4111, allocations: 3.125 kB / 398.7 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001815/0.4113, allocations: 31.08 kB / 398.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007756/0.412, allocations: 172.3 kB / 398.9 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.4131, allocations: 1.434 MB / 400.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006427/0.4137, allocations: 47.58 kB / 400.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.4138, allocations: 21.88 kB / 400.4 MB, free: 15.08 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003399/0.4142, allocations: 200.9 kB / 400.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.4143, allocations: 65.94 kB / 400.7 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.4162, allocations: 0.8392 MB / 401.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.4162, allocations: 10.81 kB / 401.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.4162, allocations: 0 / 401.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4162, allocations: 8.719 kB / 401.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0039/0.4201, allocations: 1.853 MB / 403.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.4201, allocations: 1.25 kB / 403.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005411/0.4207, allocations: 104.8 kB / 403.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/0.423, allocations: 473.3 kB / 404 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.807e-05/0.4231, allocations: 16.73 kB / 404 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005262/0.4284, allocations: 3.155 MB / 407.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.4284, allocations: 1.094 kB / 407.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003114/0.4315, allocations: 1.375 MB / 408.5 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/0.4319, allocations: 214.1 kB / 408.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.679e-05/0.432, allocations: 12.34 kB / 408.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006026/0.4326, allocations: 41.78 kB / 408.8 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.4328, allocations: 46.47 kB / 408.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.615e-05/0.4328, allocations: 20.95 kB / 408.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005761/0.4334, allocations: 387.6 kB / 409.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4334, allocations: 0 / 409.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000896/0.4343, allocations: 185.6 kB / 409.4 MB, free: 9.215 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003353/0.4377, allocations: 1.959 MB / 411.4 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.4392, allocations: 0.7347 MB / 412.1 MB, free: 7.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4392, allocations: 0 / 412.1 MB, free: 7.418 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009597/0.4401, allocations: 0.5353 MB / 412.6 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007132/0.4409, allocations: 92.97 kB / 412.7 MB, free: 7.027 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009697/0.4506, allocations: 5.92 MB / 418.6 MB, free: 1.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005133/0.4511, allocations: 0.9042 MB / 419.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003801/0.4515, allocations: 72.81 kB / 419.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004296/0.452, allocations: 243.6 kB / 419.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of SimCode: time 4.027e-06/0.452, allocations: 4 kB / 419.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04194/0.4939, allocations: 15.74 MB / 435.6 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.6, allocations: 12.44 kB / 435.6 MB, free: 0.8242 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches