Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.604/1.604, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.000349, allocations: 12 kB / 233.3 MB, free: 2.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07636/0.07673, allocations: 38.77 MB / 272 MB, free: 12.13 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.003574/0.08034, allocations: 2.15 MB / 274.2 MB, free: 9.953 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.08212, allocations: 0.8423 MB / 275 MB, free: 9.109 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.08228, allocations: 4 kB / 275 MB, free: 9.105 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001822/0.08247, allocations: 47.61 kB / 275.1 MB, free: 9.059 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00037/0.08286, allocations: 115.6 kB / 275.2 MB, free: 8.945 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003213/0.0832, allocations: 79.8 kB / 275.3 MB, free: 8.867 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003905/0.0836, allocations: 223.5 kB / 275.5 MB, free: 8.648 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.08382, allocations: 85.67 kB / 275.6 MB, free: 8.562 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002078/0.08404, allocations: 107.6 kB / 275.7 MB, free: 8.457 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.08427, allocations: 123.4 kB / 275.8 MB, free: 8.336 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.08433, allocations: 20 kB / 275.8 MB, free: 8.316 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.08447, allocations: 27.98 kB / 275.8 MB, free: 8.289 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.45e-05/0.08454, allocations: 51.81 kB / 275.9 MB, free: 8.238 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.427e-05/0.08464, allocations: 81.52 kB / 276 MB, free: 8.152 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003779/0.08503, allocations: 259.5 kB / 276.2 MB, free: 7.898 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.08504, allocations: 0 / 276.2 MB, free: 7.898 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.08505, allocations: 4 kB / 276.2 MB, free: 7.895 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.08507, allocations: 0 / 276.2 MB, free: 7.895 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001175/0.08626, allocations: 0.5572 MB / 276.8 MB, free: 7.289 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.08631, allocations: 8.031 kB / 276.8 MB, free: 7.281 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.023e-05/0.08641, allocations: 62.55 kB / 276.8 MB, free: 7.211 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.728e-05/0.08649, allocations: 31.62 kB / 276.9 MB, free: 7.18 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003485/0.08685, allocations: 254.3 kB / 277.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.827e-05/0.08691, allocations: 32.52 kB / 277.2 MB, free: 6.855 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.264e-05/0.08698, allocations: 24 kB / 277.2 MB, free: 6.832 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007003/0.08769, allocations: 240.9 kB / 277.4 MB, free: 6.59 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.08772, allocations: 0 / 277.4 MB, free: 6.59 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.08777, allocations: 15.94 kB / 277.4 MB, free: 6.574 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.08779, allocations: 4 kB / 277.4 MB, free: 6.57 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007297/0.08853, allocations: 210.2 kB / 277.6 MB, free: 6.367 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002242/0.09078, allocations: 0.9977 MB / 278.6 MB, free: 5.281 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006229/0.09142, allocations: 183.1 kB / 278.8 MB, free: 5.094 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001227/0.09156, allocations: 89.28 kB / 278.9 MB, free: 4.988 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.09161, allocations: 38.69 kB / 278.9 MB, free: 4.941 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 1.833e-06/0.09162, allocations: 4 kB / 278.9 MB, free: 4.938 MB / 234.7 MB Notification: Performance of matching and sorting (n=31): time 0.009921/0.1016, allocations: 1.466 MB / 280.4 MB, free: 3.395 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.1016, allocations: 55.41 kB / 280.5 MB, free: 3.328 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003101/0.1019, allocations: 233 kB / 280.7 MB, free: 3.094 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.102, allocations: 29.7 kB / 280.7 MB, free: 3.059 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.1021, allocations: 246.5 kB / 281 MB, free: 2.816 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.1023, allocations: 106.4 kB / 281.1 MB, free: 2.711 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.1023, allocations: 8 kB / 281.1 MB, free: 2.703 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1024, allocations: 322.8 kB / 281.4 MB, free: 2.379 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004029/0.1029, allocations: 104 kB / 281.5 MB, free: 2.277 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004455/0.1033, allocations: 167.7 kB / 281.7 MB, free: 2.098 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000447/0.1038, allocations: 123.7 kB / 281.8 MB, free: 1.977 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1038, allocations: 4 kB / 281.8 MB, free: 1.973 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003515/0.1073, allocations: 0.51 MB / 282.3 MB, free: 1.449 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/0.1074, allocations: 8 kB / 282.3 MB, free: 1.441 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1074, allocations: 3.938 kB / 282.3 MB, free: 1.438 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004799/0.1122, allocations: 301.3 kB / 282.6 MB, free: 1.137 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.1127, allocations: 55.91 kB / 282.6 MB, free: 1.082 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005469/0.1182, allocations: 2.668 MB / 285.3 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.1186, allocations: 11.98 kB / 285.3 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.1186, allocations: 12 kB / 285.3 MB, free: 14.23 MB / 250.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 (27): * Single equations (assignments): 25 * 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%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002177/0.1189, allocations: 145.9 kB / 285.5 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.818e-05/0.1189, allocations: 31.66 kB / 285.5 MB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003303/0.1223, allocations: 481.9 kB / 286 MB, free: 13.56 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.1223, allocations: 4 kB / 286 MB, free: 13.56 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1223, allocations: 0 / 286 MB, free: 13.56 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1223, allocations: 3.984 kB / 286 MB, free: 13.55 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006229/0.1229, allocations: 373.4 kB / 286.4 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.123, allocations: 0 / 286.4 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003677/0.1233, allocations: 47.91 kB / 286.4 MB, free: 13.09 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004749/0.1281, allocations: 297.5 kB / 286.7 MB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.1282, allocations: 11.98 kB / 286.7 MB, free: 12.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005346/0.1335, allocations: 2.669 MB / 289.4 MB, free: 9.961 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1335, allocations: 0 / 289.4 MB, free: 9.961 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003722/0.1373, allocations: 0.6885 MB / 290.1 MB, free: 9.25 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001624/0.1374, allocations: 124.8 kB / 290.2 MB, free: 9.109 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.1375, allocations: 4 kB / 290.2 MB, free: 9.105 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003905/0.1379, allocations: 16.06 kB / 290.2 MB, free: 9.09 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.782e-05/0.138, allocations: 27.95 kB / 290.2 MB, free: 9.062 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.429e-05/0.1381, allocations: 7.984 kB / 290.2 MB, free: 9.055 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002132/0.1383, allocations: 172.4 kB / 290.4 MB, free: 8.883 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1383, allocations: 0 / 290.4 MB, free: 8.883 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006301/0.1389, allocations: 91.94 kB / 290.5 MB, free: 8.793 MB / 250.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 (17): * Single equations (assignments): 15 * 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%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00407/0.143, allocations: 1.241 MB / 291.7 MB, free: 7.516 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.1444, allocations: 438.3 kB / 292.2 MB, free: 7.074 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/0.1444, allocations: 4 kB / 292.2 MB, free: 7.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000739/0.1451, allocations: 298.4 kB / 292.5 MB, free: 6.766 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.1455, allocations: 20.69 kB / 292.5 MB, free: 6.746 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006487/0.152, allocations: 1.97 MB / 294.5 MB, free: 4.707 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.1524, allocations: 0.7833 MB / 295.2 MB, free: 3.895 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002128/0.1526, allocations: 95.41 kB / 295.3 MB, free: 3.801 MB / 250.7 MB Notification: Performance of SimCode: time 8.41e-07/0.1526, allocations: 0 / 295.3 MB, free: 3.801 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.07/3.222, allocations: 6.763 MB / 302.1 MB, free: 30.39 MB / 250.7 MB "Error: Could not read variable source.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat. Warning: Get data of variable source.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat failed! " 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.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.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.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