Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.033/2.033, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005045/0.0005045, allocations: 12 kB / 264.1 MB, free: 2.512 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3045, allocations: 44.49 MB / 308.5 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.003997/0.3086, allocations: 2.174 MB / 310.7 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.3107, allocations: 0.8038 MB / 311.5 MB, free: 9.648 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.311, allocations: 4 kB / 311.5 MB, free: 9.645 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.3113, allocations: 39.7 kB / 311.6 MB, free: 9.605 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004232/0.3117, allocations: 103.7 kB / 311.7 MB, free: 9.504 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003449/0.3121, allocations: 83.84 kB / 311.8 MB, free: 9.422 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004729/0.3125, allocations: 231.4 kB / 312 MB, free: 9.195 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002354/0.3128, allocations: 85.67 kB / 312.1 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.3131, allocations: 107.6 kB / 312.2 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002592/0.3133, allocations: 131.4 kB / 312.3 MB, free: 8.879 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.298e-05/0.3134, allocations: 16 kB / 312.3 MB, free: 8.863 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.721e-05/0.3135, allocations: 16 kB / 312.3 MB, free: 8.848 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.266e-05/0.3136, allocations: 51.81 kB / 312.4 MB, free: 8.797 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.792e-05/0.3137, allocations: 81.52 kB / 312.5 MB, free: 8.711 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003946/0.3141, allocations: 260.2 kB / 312.7 MB, free: 8.457 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3141, allocations: 0 / 312.7 MB, free: 8.457 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3141, allocations: 0 / 312.7 MB, free: 8.457 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.3141, allocations: 0 / 312.7 MB, free: 8.457 MB / 250.7 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.001374/0.3155, allocations: 0.5534 MB / 313.3 MB, free: 7.855 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.3156, allocations: 11.97 kB / 313.3 MB, free: 7.844 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.3157, allocations: 70.53 kB / 313.3 MB, free: 7.766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.122e-05/0.3158, allocations: 31.62 kB / 313.4 MB, free: 7.734 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.3162, allocations: 258.4 kB / 313.6 MB, free: 7.441 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.3163, allocations: 20.56 kB / 313.6 MB, free: 7.422 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.931e-05/0.3163, allocations: 24 kB / 313.7 MB, free: 7.398 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007795/0.3171, allocations: 248.9 kB / 313.9 MB, free: 7.148 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.3172, allocations: 0 / 313.9 MB, free: 7.148 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.044e-05/0.3172, allocations: 12 kB / 313.9 MB, free: 7.137 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.3172, allocations: 4 kB / 313.9 MB, free: 7.133 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008367/0.3181, allocations: 230.1 kB / 314.2 MB, free: 6.906 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.3207, allocations: 1.009 MB / 315.2 MB, free: 5.812 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007114/0.3214, allocations: 205 kB / 315.4 MB, free: 5.605 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.53e-05/0.3215, allocations: 8 kB / 315.4 MB, free: 5.598 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.3215, allocations: 34.56 kB / 315.4 MB, free: 5.555 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 3.126e-06/0.3215, allocations: 0 / 315.4 MB, free: 5.555 MB / 250.7 MB Notification: Performance of matching and sorting (n=34): time 0.008469/0.33, allocations: 1.499 MB / 316.9 MB, free: 3.98 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.3301, allocations: 63.36 kB / 317 MB, free: 3.906 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003545/0.3305, allocations: 229 kB / 317.2 MB, free: 3.672 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.456e-05/0.3306, allocations: 29.7 kB / 317.2 MB, free: 3.637 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.3307, allocations: 184.1 kB / 317.4 MB, free: 3.453 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.3309, allocations: 114.3 kB / 317.5 MB, free: 3.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.3309, allocations: 8 kB / 317.5 MB, free: 3.332 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3311, allocations: 334.8 kB / 317.8 MB, free: 2.996 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004354/0.3315, allocations: 111.9 kB / 318 MB, free: 2.887 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004572/0.332, allocations: 148.6 kB / 318.1 MB, free: 2.723 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004656/0.3325, allocations: 125.6 kB / 318.2 MB, free: 2.602 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3325, allocations: 4 kB / 318.2 MB, free: 2.598 MB / 250.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002796/0.3353, allocations: 0.5355 MB / 318.8 MB, free: 2.051 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.3354, allocations: 4 kB / 318.8 MB, free: 2.047 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.3354, allocations: 7.984 kB / 318.8 MB, free: 2.039 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002566/0.338, allocations: 253.4 kB / 319 MB, free: 1.785 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005152/0.3385, allocations: 47.97 kB / 319.1 MB, free: 1.738 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007491/0.346, allocations: 3.806 MB / 322.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/0.3465, allocations: 12 kB / 322.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.969e-05/0.3466, allocations: 16.06 kB / 322.9 MB, free: 13.62 MB / 266.7 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 (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.3469, allocations: 151.6 kB / 323 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.426e-05/0.347, allocations: 27.67 kB / 323.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.3471, allocations: 38.95 kB / 323.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.3471, allocations: 4 kB / 323.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.3472, allocations: 4 kB / 323.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3472, allocations: 3.984 kB / 323.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006705/0.3479, allocations: 373.4 kB / 323.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3479, allocations: 7.828 kB / 323.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004255/0.3483, allocations: 39.97 kB / 323.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002505/0.3508, allocations: 257.4 kB / 323.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.649e-05/0.3509, allocations: 7.953 kB / 323.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007018/0.358, allocations: 3.684 MB / 327.5 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.358, allocations: 4.062 kB / 327.5 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003171/0.3612, allocations: 0.7074 MB / 328.2 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.3614, allocations: 104.8 kB / 328.3 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.823e-05/0.3614, allocations: 7.953 kB / 328.3 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003765/0.3618, allocations: 20.06 kB / 328.3 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.362, allocations: 31.89 kB / 328.4 MB, free: 7.809 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.502e-05/0.3621, allocations: 11.98 kB / 328.4 MB, free: 7.797 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002328/0.3623, allocations: 160.5 kB / 328.5 MB, free: 7.641 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3623, allocations: 0 / 328.5 MB, free: 7.641 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007783/0.3631, allocations: 104 kB / 328.6 MB, free: 7.539 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003577/0.3667, allocations: 1.264 MB / 329.9 MB, free: 6.238 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.3683, allocations: 0.5596 MB / 330.4 MB, free: 5.652 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3684, allocations: 0 / 330.4 MB, free: 5.652 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009365/0.3693, allocations: 437.3 kB / 330.9 MB, free: 5.199 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.3697, allocations: 16.44 kB / 330.9 MB, free: 5.184 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00627/0.3759, allocations: 1.998 MB / 332.9 MB, free: 3.113 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/0.3765, allocations: 0.784 MB / 333.7 MB, free: 2.301 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.3767, allocations: 22.3 kB / 333.7 MB, free: 2.281 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.3769, allocations: 91.41 kB / 333.8 MB, free: 2.195 MB / 266.7 MB Notification: Performance of SimCode: time 3.357e-06/0.3769, allocations: 4.047 kB / 333.8 MB, free: 2.191 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04501/0.4219, allocations: 7.685 MB / 341.5 MB, free: 10.55 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003802/0.4224, allocations: 221.5 kB / 341.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.148/3.57, allocations: 0 / 341.7 MB, free: 10.3 MB / 282.7 MB "" Variables in the reference:time,coil.Phi Variables in the result:coil.L_stat,coil.N,coil.Phi,coil.Psi,coil.V_m,coil.eps,coil.i,coil.n.i,coil.n.v,coil.p.i,coil.p.v,coil.port_n.Phi,coil.port_n.V_m,coil.port_p.Phi,coil.port_p.V_m,coil.v,der(coil.Phi),der(coil.V_m),der(coil.i),der(r_mAirPar.V_m),der(r_mFe.B),der(r_mFe.B_N),der(r_mFe.G_m),der(r_mFe.Phi),der(r_mFe.R_m),der(r_mFe.V_m),der(r_mFe.mu_r),der(r_mLeak.Phi),ground.p.i,ground.p.v,ground_m.port.Phi,ground_m.port.V_m,r.LossPower,r.R,r.R_actual,r.T,r.T_heatPort,r.T_ref,r.alpha,r.i,r.n.i,r.n.v,r.p.i,r.p.v,r.useHeatPort,r.v,r_mAirPar.A,r_mAirPar.B,r_mAirPar.B_N,r_mAirPar.G_m,r_mAirPar.H,r_mAirPar.Phi,r_mAirPar.R_m,r_mAirPar.V_m,r_mAirPar.a,r_mAirPar.b,r_mAirPar.l,r_mAirPar.material.B_myMax,r_mAirPar.material.c_a,r_mAirPar.material.c_b,r_mAirPar.material.mu_i,r_mAirPar.material.n,r_mAirPar.mu_r,r_mAirPar.mu_rConst,r_mAirPar.nonLinearPermeability,r_mAirPar.port_n.Phi,r_mAirPar.port_n.V_m,r_mAirPar.port_p.Phi,r_mAirPar.port_p.V_m,r_mFe.A,r_mFe.B,r_mFe.B_N,r_mFe.G_m,r_mFe.H,r_mFe.Phi,r_mFe.R_m,r_mFe.V_m,r_mFe.a,r_mFe.b,r_mFe.l,r_mFe.material.B_myMax,r_mFe.material.c_a,r_mFe.material.c_b,r_mFe.material.mu_i,r_mFe.material.n,r_mFe.mu_r,r_mFe.mu_rConst,r_mFe.nonLinearPermeability,r_mFe.port_n.Phi,r_mFe.port_n.V_m,r_mFe.port_p.Phi,r_mFe.port_p.V_m,r_mLeak.Phi,r_mLeak.R_m,r_mLeak.V_m,r_mLeak.port_n.Phi,r_mLeak.port_n.V_m,r_mLeak.port_p.Phi,r_mLeak.port_p.V_m,source.V,source.freqHz,source.i,source.n.i,source.n.v,source.offset,source.p.i,source.p.v,source.phase,source.signalSource.amplitude,source.signalSource.freqHz,source.signalSource.offset,source.signalSource.phase,source.signalSource.startTime,source.signalSource.y,source.startTime,source.v,time