Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001314/0.001314, allocations: 122.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 197.2 kB / 18.74 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.518/1.518, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 63.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.283, allocations: 50.56 MB / 409.1 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00769/0.2907, allocations: 5.05 MB / 414.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004612/0.2954, allocations: 2.16 MB / 416.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006692/0.2961, allocations: 16 kB / 416.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003575/0.2997, allocations: 1.404 MB / 417.7 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001584/0.3013, allocations: 413.4 kB / 418.1 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002717/0.304, allocations: 1.215 MB / 419.3 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.3053, allocations: 0.7317 MB / 420.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001219/0.3066, allocations: 0.6417 MB / 420.7 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006657/0.3073, allocations: 338.8 kB / 421 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006515/0.3079, allocations: 430.3 kB / 421.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.3081, allocations: 68 kB / 421.5 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.3091, allocations: 415.7 kB / 421.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.3093, allocations: 159.4 kB / 422.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005467/0.3099, allocations: 378.2 kB / 422.5 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002043/0.3119, allocations: 1.213 MB / 423.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.312, allocations: 0 / 423.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.312, allocations: 0 / 423.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.375e-05/0.312, allocations: 0 / 423.7 MB, free: 2.758 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004903/0.3169, allocations: 1.481 MB / 425.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.317, allocations: 8.031 kB / 425.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002142/0.3172, allocations: 135.4 kB / 425.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002618/0.3198, allocations: 368.1 kB / 425.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.3201, allocations: 264 kB / 425.9 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.208e-05/0.3202, allocations: 58.38 kB / 426 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.3204, allocations: 92.31 kB / 426.1 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002121/0.3225, allocations: 0.8759 MB / 426.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.844e-05/0.3226, allocations: 3.953 kB / 426.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.834e-05/0.3227, allocations: 36 kB / 427 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.3227, allocations: 20 kB / 427 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/0.3247, allocations: 0.7886 MB / 427.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005307/0.33, allocations: 3.018 MB / 430.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.3315, allocations: 0.9927 MB / 431.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005585/0.3321, allocations: 238.4 kB / 432 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001951/0.3323, allocations: 182.7 kB / 432.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/0.3324, allocations: 39.12 kB / 432.2 MB, free: 9.699 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 4.468e-06/0.3324, allocations: 7.922 kB / 432.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007745/0.3401, allocations: 2.397 MB / 434.6 MB, free: 7.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/0.3402, allocations: 81.67 kB / 434.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.3407, allocations: 311.1 kB / 435 MB, free: 6.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.829e-05/0.3407, allocations: 41.64 kB / 435.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003134/0.341, allocations: 367.9 kB / 435.4 MB, free: 6.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.3413, allocations: 218.1 kB / 435.6 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002601/0.3415, allocations: 154.5 kB / 435.8 MB, free: 6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002544/0.3418, allocations: 350.7 kB / 436.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.3429, allocations: 265.8 kB / 436.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/0.344, allocations: 0.5081 MB / 436.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00223/0.3462, allocations: 0.8037 MB / 437.7 MB, free: 3.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.3463, allocations: 4 kB / 437.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002529/0.3488, allocations: 0.8911 MB / 438.6 MB, free: 2.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.3488, allocations: 8 kB / 438.6 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/0.3489, allocations: 11.94 kB / 438.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002659/0.3491, allocations: 73.61 kB / 438.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009648/0.3501, allocations: 199.7 kB / 438.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.3528, allocations: 2.865 MB / 441.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006675/0.3535, allocations: 55.95 kB / 441.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.337e-05/0.3535, allocations: 39.98 kB / 441.8 MB, free: 15.44 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003568/0.3539, allocations: 213.7 kB / 442.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.924e-05/0.354, allocations: 47.66 kB / 442.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001973/0.356, allocations: 0.7273 MB / 442.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.356, allocations: 8 kB / 442.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.356, allocations: 4 kB / 442.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.356, allocations: 3.984 kB / 442.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.3588, allocations: 1.413 MB / 444.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3589, allocations: 0 / 444.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006522/0.3595, allocations: 127.8 kB / 444.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001933/0.3597, allocations: 69.56 kB / 444.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-05/0.3598, allocations: 19.92 kB / 444.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002588/0.3624, allocations: 2.849 MB / 447.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3624, allocations: 0 / 447.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002667/0.3651, allocations: 1.079 MB / 448.4 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002406/0.3653, allocations: 164.8 kB / 448.6 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.519e-05/0.3654, allocations: 12 kB / 448.6 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004665/0.3659, allocations: 48.02 kB / 448.6 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.366, allocations: 48.42 kB / 448.7 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-05/0.3661, allocations: 19.98 kB / 448.7 MB, free: 8.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002471/0.3663, allocations: 207.1 kB / 448.9 MB, free: 7.984 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3663, allocations: 4 kB / 448.9 MB, free: 7.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007415/0.3671, allocations: 172 kB / 449.1 MB, free: 7.812 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003165/0.3703, allocations: 1.678 MB / 450.7 MB, free: 6.102 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002151/0.3724, allocations: 0.9201 MB / 451.7 MB, free: 5.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3724, allocations: 0 / 451.7 MB, free: 5.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.3735, allocations: 0.5434 MB / 452.2 MB, free: 4.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004826/0.374, allocations: 44.59 kB / 452.2 MB, free: 4.543 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009587/0.3836, allocations: 5.085 MB / 457.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006161/0.3843, allocations: 0.8888 MB / 458.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003998/0.3847, allocations: 80.53 kB / 458.3 MB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/0.385, allocations: 227.3 kB / 458.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.385, allocations: 0 / 458.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04429/0.4293, allocations: 11.07 MB / 469.6 MB, free: 3.109 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.63, allocations: 4.391 kB / 469.6 MB, free: 3.105 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1)