Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_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.001926/0.001926, allocations: 113.6 kB / 17.78 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002609/0.002609, allocations: 207.9 kB / 18.74 MB, free: 4.289 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.694/1.694, allocations: 227.7 MB / 247.2 MB, free: 10.13 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.002007/0.002007, allocations: 67.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3204, allocations: 50.55 MB / 409.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004665/0.3251, allocations: 2.819 MB / 411.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.3268, allocations: 0.7789 MB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.327, allocations: 8 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002428/0.3273, allocations: 63.42 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.3276, allocations: 95.12 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.328, allocations: 111.8 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004275/0.3284, allocations: 394.5 kB / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.3287, allocations: 130.9 kB / 413.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003266/0.329, allocations: 155.4 kB / 413.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.3292, allocations: 175.2 kB / 413.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.171e-05/0.3293, allocations: 32 kB / 413.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.609e-05/0.3294, allocations: 32 kB / 413.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.3294, allocations: 79.7 kB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.3296, allocations: 179.1 kB / 414.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004773/0.3301, allocations: 393.3 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3301, allocations: 0 / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.3301, allocations: 0 / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.3302, allocations: 0 / 414.5 MB, free: 11.89 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001313/0.3315, allocations: 0.6506 MB / 415.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.3315, allocations: 12.03 kB / 415.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.622e-05/0.3316, allocations: 66.72 kB / 415.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.135e-05/0.3317, allocations: 40.7 kB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004325/0.3321, allocations: 276.7 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.478e-05/0.3322, allocations: 25.03 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.382e-05/0.3322, allocations: 32.38 kB / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007218/0.333, allocations: 290.1 kB / 415.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.333, allocations: 4 kB / 415.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.333, allocations: 12 kB / 415.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.3331, allocations: 8 kB / 415.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000658/0.3337, allocations: 258.4 kB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.3356, allocations: 1.105 MB / 417.2 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004139/0.3361, allocations: 158.4 kB / 417.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.3363, allocations: 60.83 kB / 417.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.3363, allocations: 11.98 kB / 417.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.3364, allocations: 38.55 kB / 417.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.333e-06/0.3364, allocations: 0 / 417.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002256/0.3386, allocations: 0.5949 MB / 418.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.3387, allocations: 55.41 kB / 418.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003069/0.339, allocations: 270.5 kB / 418.4 MB, free: 7.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.3391, allocations: 33.7 kB / 418.4 MB, free: 7.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.3392, allocations: 232.1 kB / 418.7 MB, free: 7.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.593e-05/0.3393, allocations: 75.36 kB / 418.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.3394, allocations: 69.44 kB / 418.8 MB, free: 7.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.3396, allocations: 338.8 kB / 419.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002999/0.3399, allocations: 95.92 kB / 419.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004069/0.3403, allocations: 196.1 kB / 419.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007183/0.3411, allocations: 309.1 kB / 419.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3411, allocations: 0 / 419.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009314/0.342, allocations: 393 kB / 420.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.3421, allocations: 8 kB / 420.1 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3421, allocations: 4 kB / 420.1 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002738/0.3424, allocations: 62.05 kB / 420.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003284/0.3427, allocations: 71.89 kB / 420.3 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/0.3453, allocations: 2.837 MB / 423.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003478/0.3457, allocations: 23.97 kB / 423.1 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.3457, allocations: 12 kB / 423.1 MB, free: 2.566 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001973/0.3459, allocations: 162.4 kB / 423.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.314e-05/0.346, allocations: 23.86 kB / 423.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.43e-05/0.346, allocations: 38.11 kB / 423.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3461, allocations: 0 / 423.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.3461, allocations: 4 kB / 423.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3461, allocations: 0 / 423.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004201/0.3465, allocations: 333.4 kB / 423.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3465, allocations: 0 / 423.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002104/0.3467, allocations: 39.97 kB / 423.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/0.3469, allocations: 49.69 kB / 423.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.3469, allocations: 7.984 kB / 423.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002383/0.3493, allocations: 2.83 MB / 426.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3493, allocations: 0 / 426.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000803/0.3501, allocations: 390.8 kB / 427 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.3503, allocations: 96.95 kB / 427.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.965e-05/0.3504, allocations: 8 kB / 427.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.3506, allocations: 11.98 kB / 427.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.558e-05/0.3507, allocations: 23.97 kB / 427.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.3507, allocations: 8 kB / 427.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002085/0.3509, allocations: 189.9 kB / 427.3 MB, free: 14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3509, allocations: 0 / 427.3 MB, free: 14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000413/0.3514, allocations: 72 kB / 427.4 MB, free: 13.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.001121/0.3525, allocations: 0.9119 MB / 428.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.3536, allocations: 477.1 kB / 428.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3536, allocations: 0 / 428.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005649/0.3542, allocations: 358 kB / 429.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.3545, allocations: 28.55 kB / 429.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004818/0.3594, allocations: 2.962 MB / 432.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004457/0.3598, allocations: 0.7714 MB / 432.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.36, allocations: 30.27 kB / 432.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.3601, allocations: 99.41 kB / 433 MB, free: 8.027 MB / 350.1 MB Notification: Performance of SimCode: time 2.474e-06/0.3601, allocations: 0 / 433 MB, free: 8.027 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04124/0.4014, allocations: 5.623 MB / 438.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.18, allocations: 11.89 kB / 438.6 MB, free: 2.59 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.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_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1)