Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",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.001393/0.001393, allocations: 107.7 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.001349/0.001349, allocations: 188.2 kB / 18.67 MB, free: 4.387 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.443/1.443, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001468/0.001469, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.0937, allocations: 46.63 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.005304/0.09906, allocations: 2.762 MB / 377.4 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.1018, allocations: 1.278 MB / 378.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002902/0.1022, allocations: 0 / 378.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004663/0.1027, allocations: 67.44 kB / 378.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007595/0.1034, allocations: 222.7 kB / 379 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003535/0.1038, allocations: 127.8 kB / 379.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006297/0.1045, allocations: 455 kB / 379.5 MB, free: 156 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.1047, allocations: 92.53 kB / 379.6 MB, free: 60 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2115/0.3162, allocations: 178.8 kB / 379.8 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003471/0.3166, allocations: 225.2 kB / 380 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.073e-05/0.3167, allocations: 42.31 kB / 380.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003441/0.3171, allocations: 166.2 kB / 380.2 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.518e-05/0.3172, allocations: 85.7 kB / 380.3 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002371/0.3174, allocations: 189.2 kB / 380.5 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007473/0.3182, allocations: 0.5014 MB / 381 MB, free: 9.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3182, allocations: 1.875 kB / 381 MB, free: 9.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3182, allocations: 0 / 381 MB, free: 9.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3182, allocations: 0 / 381 MB, free: 9.234 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001566/0.3198, allocations: 0.7172 MB / 381.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001144/0.3199, allocations: 14.59 kB / 381.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.071e-05/0.32, allocations: 60.84 kB / 381.8 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.576e-05/0.3201, allocations: 36 kB / 381.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004983/0.3206, allocations: 332.1 kB / 382.2 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.79e-05/0.3207, allocations: 53.2 kB / 382.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001814/0.3209, allocations: 43.66 kB / 382.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006505/0.3216, allocations: 320.6 kB / 382.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.3216, allocations: 4.469 kB / 382.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.679e-05/0.3216, allocations: 11.2 kB / 382.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.3216, allocations: 9.219 kB / 382.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009033/0.3226, allocations: 302 kB / 382.9 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.3244, allocations: 1.156 MB / 384 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007189/0.3252, allocations: 289.6 kB / 384.3 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003179/0.3255, allocations: 164.4 kB / 384.5 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.3255, allocations: 3.5 kB / 384.5 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.3255, allocations: 39.97 kB / 384.5 MB, free: 7.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.3256, allocations: 0 / 384.5 MB, free: 7.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.009626/0.3352, allocations: 2.425 MB / 386.9 MB, free: 6.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.3353, allocations: 82.19 kB / 387 MB, free: 6.852 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004032/0.3357, allocations: 296.5 kB / 387.3 MB, free: 6.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.3357, allocations: 31.55 kB / 387.3 MB, free: 6.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.3358, allocations: 170.2 kB / 387.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.336, allocations: 156.5 kB / 387.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.3361, allocations: 79.47 kB / 387.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.728e-05/0.3362, allocations: 340.5 kB / 388.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004211/0.3366, allocations: 163.8 kB / 388.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004676/0.3371, allocations: 226.3 kB / 388.5 MB, free: 5.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009208/0.3381, allocations: 408.7 kB / 388.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3381, allocations: 5.125 kB / 388.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001103/0.3392, allocations: 488.7 kB / 389.3 MB, free: 5.426 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.3392, allocations: 6.953 kB / 389.3 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3392, allocations: 1.188 kB / 389.3 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.624e-05/0.3393, allocations: 8.062 kB / 389.4 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.3399, allocations: 116.1 kB / 389.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-05/0.34, allocations: 6.094 kB / 389.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000446/0.3405, allocations: 31.56 kB / 389.5 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/0.3406, allocations: 19.08 kB / 389.5 MB, free: 5.406 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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.0001902/0.3408, allocations: 164.8 kB / 389.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.3409, allocations: 31.88 kB / 389.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001934/0.3428, allocations: 0.654 MB / 390.4 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3429, allocations: 5.969 kB / 390.4 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3429, allocations: 0.6094 kB / 390.4 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.3429, allocations: 3.469 kB / 390.4 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003068/0.346, allocations: 1.275 MB / 391.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.346, allocations: 1 kB / 391.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.3464, allocations: 90.83 kB / 391.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/0.348, allocations: 275.4 kB / 392 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/0.3481, allocations: 13.36 kB / 392 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003818/0.3519, allocations: 2.448 MB / 394.5 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3519, allocations: 1.812 kB / 394.5 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/0.3544, allocations: 1.002 MB / 395.5 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.3546, allocations: 152 kB / 395.6 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.3548, allocations: 15.95 kB / 395.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005842/0.3553, allocations: 24.23 kB / 395.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.3555, allocations: 37.91 kB / 395.7 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.3555, allocations: 15.75 kB / 395.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002432/0.3558, allocations: 208.2 kB / 395.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3558, allocations: 0 / 395.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007066/0.3565, allocations: 118.5 kB / 396 MB, free: 1.539 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * 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 (40): * Single equations (assignments): 39 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002763/0.3593, allocations: 1.6 MB / 397.6 MB, free: 488 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.3605, allocations: 428.5 kB / 398.1 MB, free: 352 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3605, allocations: 0 / 398.1 MB, free: 352 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007011/0.3612, allocations: 389.4 kB / 398.4 MB, free: 144 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.3617, allocations: 37.89 kB / 398.5 MB, free: 124 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006926/0.3687, allocations: 3.859 MB / 402.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.3692, allocations: 0.7852 MB / 403.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002591/0.3694, allocations: 44.47 kB / 403.2 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/0.3697, allocations: 122.8 kB / 403.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3697, allocations: 0 / 403.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03743/0.4072, allocations: 9.685 MB / 413 MB, free: 7.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.68, allocations: 4.062 kB / 413 MB, free: 7.949 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches