Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_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.001658/0.001658, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001799/0.001799, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.499/1.499, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.00152/0.001521, allocations: 51.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1049, allocations: 46.63 MB / 374.7 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.006897/0.1118, allocations: 3.337 MB / 378 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003603/0.1155, allocations: 1.392 MB / 379.4 MB, free: 336 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007439/0.1163, allocations: 15.94 kB / 379.4 MB, free: 320 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2234/0.3398, allocations: 2.656 MB / 382.1 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.3409, allocations: 174.4 kB / 382.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009023/0.3419, allocations: 282 kB / 382.5 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003215/0.3451, allocations: 1.796 MB / 384.3 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003054/0.3454, allocations: 136.6 kB / 384.4 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005867/0.346, allocations: 307.2 kB / 384.7 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004544/0.3465, allocations: 327.7 kB / 385 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.3466, allocations: 43.41 kB / 385.1 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002169/0.3468, allocations: 75.52 kB / 385.2 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007891/0.3476, allocations: 0.8489 MB / 386 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006237/0.3482, allocations: 0.9313 MB / 386.9 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003327/0.3516, allocations: 2.624 MB / 389.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3516, allocations: 1.438 kB / 389.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.3516, allocations: 4 kB / 389.6 MB, free: 7.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.058e-05/0.3517, allocations: 3.188 kB / 389.6 MB, free: 7.844 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005215/0.3569, allocations: 2.888 MB / 392.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.357, allocations: 13.11 kB / 392.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.533e-05/0.3571, allocations: 75.89 kB / 392.6 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004956/0.3576, allocations: 298.4 kB / 392.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002843/0.3604, allocations: 1.852 MB / 394.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.343e-05/0.3605, allocations: 60.58 kB / 394.8 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.3607, allocations: 56.3 kB / 394.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007622/0.3615, allocations: 392 kB / 395.2 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.3615, allocations: 3.938 kB / 395.2 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.031e-05/0.3615, allocations: 16.44 kB / 395.2 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.3616, allocations: 7.688 kB / 395.2 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007251/0.3623, allocations: 334.2 kB / 395.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004708/0.367, allocations: 2.899 MB / 398.4 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006404/0.3677, allocations: 321.3 kB / 398.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002972/0.368, allocations: 158.1 kB / 398.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.368, allocations: 7.469 kB / 398.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.3681, allocations: 36.78 kB / 399 MB, free: 2.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 3.035e-06/0.3681, allocations: 0 / 399 MB, free: 2.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=48): time 0.005019/0.3731, allocations: 2.437 MB / 401.4 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.3732, allocations: 87.22 kB / 401.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007826/0.381, allocations: 5.429 MB / 406.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.3811, allocations: 39.11 kB / 406.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.3824, allocations: 1.206 MB / 408.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.3826, allocations: 180.1 kB / 408.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.3828, allocations: 89.02 kB / 408.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3829, allocations: 331.1 kB / 408.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003637/0.3833, allocations: 136.4 kB / 408.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003926/0.3837, allocations: 227.5 kB / 409.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007333/0.3844, allocations: 383.1 kB / 409.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3844, allocations: 0 / 409.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001678/0.3861, allocations: 0.6973 MB / 410.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.3861, allocations: 4 kB / 410.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.3862, allocations: 5.875 kB / 410.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.3862, allocations: 4 kB / 410.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005252/0.3867, allocations: 119.8 kB / 410.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.3867, allocations: 8.25 kB / 410.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007051/0.3875, allocations: 31.81 kB / 410.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.3875, allocations: 16 kB / 410.3 MB, free: 11.09 MB / 334.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.00151/0.389, allocations: 0.923 MB / 411.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003823/0.3894, allocations: 282.1 kB / 411.5 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.3908, allocations: 0.7746 MB / 412.3 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.3909, allocations: 8 kB / 412.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.3909, allocations: 0 / 412.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3909, allocations: 3.984 kB / 412.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.3929, allocations: 1.468 MB / 413.8 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3929, allocations: 0 / 413.8 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004349/0.3933, allocations: 95.88 kB / 413.9 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000329/0.3937, allocations: 91.84 kB / 414 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.167e-05/0.3937, allocations: 15.92 kB / 414 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005787/0.3943, allocations: 0.6295 MB / 414.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3943, allocations: 0 / 414.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.3959, allocations: 1.083 MB / 415.7 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000922/0.3969, allocations: 0.4926 MB / 416.2 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.3971, allocations: 12 kB / 416.2 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004858/0.3976, allocations: 27.92 kB / 416.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.738e-05/0.3977, allocations: 28.39 kB / 416.3 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.731e-05/0.3977, allocations: 15.98 kB / 416.3 MB, free: 5.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.005206/0.4029, allocations: 3.97 MB / 420.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4029, allocations: 0 / 420.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009322/0.4039, allocations: 204 kB / 420.5 MB, free: 0.8633 MB / 334.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.002956/0.4068, allocations: 1.956 MB / 422.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008496/0.4077, allocations: 376.9 kB / 422.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4077, allocations: 0 / 422.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004815/0.4082, allocations: 218.8 kB / 423 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.4095, allocations: 187.2 kB / 423.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05255/0.4621, allocations: 19.35 MB / 442.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002208/0.4643, allocations: 1.821 MB / 444.3 MB, free: 8.754 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000993/0.4653, allocations: 275.6 kB / 444.6 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0018/0.4672, allocations: 0.9327 MB / 445.5 MB, free: 7.547 MB / 366.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4672, allocations: 0 / 445.5 MB, free: 7.547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09344/0.5606, allocations: 38.61 MB / 484.2 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.58/18.14, allocations: 16.08 kB / 484.2 MB, free: 0.8281 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches