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.QuadraticCoreAirgap.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.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001247/0.001247, allocations: 114.9 kB / 17.84 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 205.2 kB / 18.79 MB, free: 4.141 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.503/1.503, allocations: 230.4 MB / 250 MB, free: 9.148 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.001961/0.001961, allocations: 79.8 kB / 366.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2941, allocations: 53.3 MB / 420.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008883/0.303, allocations: 6.751 MB / 426.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005276/0.3082, allocations: 2.46 MB / 429.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.3094, allocations: 20 kB / 429.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00575/0.3151, allocations: 1.896 MB / 431.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003043/0.3182, allocations: 0.5472 MB / 431.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003359/0.3215, allocations: 1.32 MB / 433.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002841/0.3244, allocations: 1.129 MB / 434.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001836/0.3262, allocations: 0.7086 MB / 435 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.3272, allocations: 490.1 kB / 435.5 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009045/0.3281, allocations: 0.6186 MB / 436.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001933/0.3283, allocations: 100 kB / 436.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001438/0.3297, allocations: 443.6 kB / 436.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002901/0.33, allocations: 251.1 kB / 436.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007928/0.3308, allocations: 0.5558 MB / 437.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003096/0.3339, allocations: 1.676 MB / 439.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.3339, allocations: 0 / 439.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3339, allocations: 8 kB / 439.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.928e-05/0.334, allocations: 0 / 439.1 MB, free: 5.297 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.006967/0.3409, allocations: 2.047 MB / 441.2 MB, free: 3.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.341, allocations: 12.03 kB / 441.2 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002524/0.3412, allocations: 190.3 kB / 441.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003584/0.3448, allocations: 0.5153 MB / 441.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004766/0.3453, allocations: 314.6 kB / 442.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.3454, allocations: 98.95 kB / 442.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003575/0.3458, allocations: 128.3 kB / 442.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00273/0.3485, allocations: 1.299 MB / 443.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.674e-05/0.3486, allocations: 0 / 443.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.3487, allocations: 56 kB / 443.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.999e-05/0.3487, allocations: 32 kB / 443.8 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00273/0.3515, allocations: 1.193 MB / 445 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007983/0.3594, allocations: 4.286 MB / 449.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002849/0.3623, allocations: 2.342 MB / 451.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009752/0.3633, allocations: 463.3 kB / 452.1 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002459/0.3635, allocations: 183.2 kB / 452.2 MB, free: 7.477 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.3636, allocations: 43.56 kB / 452.3 MB, free: 7.426 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.447e-06/0.3636, allocations: 0 / 452.3 MB, free: 7.426 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.01062/0.3742, allocations: 3.771 MB / 456.1 MB, free: 3.559 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.332e-05/0.3743, allocations: 90.11 kB / 456.1 MB, free: 3.453 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000551/0.3748, allocations: 397.5 kB / 456.5 MB, free: 3.059 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.304e-05/0.3749, allocations: 45.7 kB / 456.6 MB, free: 3.008 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003834/0.3753, allocations: 464.6 kB / 457 MB, free: 2.547 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003912/0.3757, allocations: 440.2 kB / 457.5 MB, free: 2.113 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003769/0.376, allocations: 231.5 kB / 457.7 MB, free: 1.879 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002167/0.3763, allocations: 382.8 kB / 458.1 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.3774, allocations: 427.8 kB / 458.5 MB, free: 1.078 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.3786, allocations: 0.688 MB / 459.2 MB, free: 300 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00242/0.381, allocations: 1.183 MB / 460.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.3811, allocations: 7.938 kB / 460.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003284/0.3843, allocations: 1.455 MB / 461.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/0.3844, allocations: 8 kB / 461.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/0.3844, allocations: 12.03 kB / 461.8 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006378/0.385, allocations: 201.4 kB / 462 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.3863, allocations: 287.6 kB / 462.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005084/0.3913, allocations: 4.383 MB / 466.7 MB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.3924, allocations: 75.89 kB / 466.8 MB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.3925, allocations: 63.98 kB / 466.8 MB, free: 8.246 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004934/0.393, allocations: 265.5 kB / 467.1 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.3931, allocations: 67.58 kB / 467.2 MB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003097/0.3962, allocations: 1.331 MB / 468.5 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.3962, allocations: 15.94 kB / 468.5 MB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.3962, allocations: 4 kB / 468.5 MB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.3963, allocations: 11.97 kB / 468.5 MB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005074/0.4013, allocations: 2.59 MB / 471.1 MB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.4013, allocations: 0 / 471.1 MB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009732/0.4023, allocations: 207.8 kB / 471.3 MB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004717/0.4028, allocations: 173.5 kB / 471.5 MB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.098e-05/0.4029, allocations: 27.98 kB / 471.5 MB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004465/0.4073, allocations: 4.185 MB / 475.7 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.4073, allocations: 3.984 kB / 475.7 MB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004029/0.4114, allocations: 1.869 MB / 477.6 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004352/0.4118, allocations: 224.6 kB / 477.8 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.4119, allocations: 20 kB / 477.8 MB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007077/0.4126, allocations: 64.02 kB / 477.9 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.4128, allocations: 84.88 kB / 477.9 MB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.252e-05/0.4129, allocations: 35.98 kB / 478 MB, free: 12.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003433/0.4133, allocations: 271.2 kB / 478.2 MB, free: 12.37 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4133, allocations: 0 / 478.2 MB, free: 12.37 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00118/0.4144, allocations: 307.9 kB / 478.5 MB, free: 12.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (106): * Single equations (assignments): 104 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004491/0.4189, allocations: 2.482 MB / 481 MB, free: 9.539 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003282/0.4222, allocations: 1.391 MB / 482.4 MB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.4222, allocations: 0 / 482.4 MB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001615/0.4238, allocations: 0.82 MB / 483.2 MB, free: 7.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006554/0.4245, allocations: 71.33 kB / 483.3 MB, free: 7.211 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/0.4389, allocations: 7.643 MB / 491 MB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007507/0.4397, allocations: 1.001 MB / 492 MB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006329/0.4403, allocations: 142.6 kB / 492.1 MB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005212/0.4409, allocations: 343.3 kB / 492.4 MB, free: 13.73 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4409, allocations: 0 / 492.4 MB, free: 13.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05974/0.5006, allocations: 17.62 MB / 0.4981 GB, free: 12.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.36/22.86, allocations: 3.859 kB / 0.4981 GB, free: 12.34 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_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_QuadraticCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1)