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.001831/0.00183, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001996/0.001996, allocations: 214.4 kB / 18.59 MB, free: 4.531 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.486/1.486, allocations: 227.7 MB / 247 MB, free: 10.31 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.001868/0.001868, allocations: 69.25 kB / 307.3 MB, free: 376 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09465/0.09653, allocations: 50.54 MB / 357.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.01257/0.1091, allocations: 6.698 MB / 364.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006797/0.116, allocations: 2.452 MB / 367 MB, free: 4.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009394/0.117, allocations: 24 kB / 367.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005812/0.1228, allocations: 1.878 MB / 368.9 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002668/0.1255, allocations: 0.5472 MB / 369.5 MB, free: 2.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004047/0.1296, allocations: 1.329 MB / 370.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2007/0.3303, allocations: 1.1 MB / 371.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002035/0.3324, allocations: 0.931 MB / 372.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008615/0.3333, allocations: 489.2 kB / 373.3 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000825/0.3341, allocations: 0.6154 MB / 373.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.3343, allocations: 99.91 kB / 374 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.3357, allocations: 450.2 kB / 374.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002302/0.336, allocations: 254.3 kB / 374.7 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005211/0.3365, allocations: 0.5656 MB / 375.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00212/0.3386, allocations: 1.647 MB / 376.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3387, allocations: 0.7969 kB / 376.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3387, allocations: 1.625 kB / 376.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.388e-05/0.3387, allocations: 0 / 376.9 MB, free: 8.691 MB / 302.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.007452/0.3462, allocations: 2.024 MB / 379 MB, free: 7.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.3462, allocations: 13.38 kB / 379 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002394/0.3465, allocations: 190 kB / 379.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003614/0.3501, allocations: 0.5059 MB / 379.7 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004488/0.3506, allocations: 315.2 kB / 380 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/0.3507, allocations: 99.3 kB / 380.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003396/0.3511, allocations: 124.8 kB / 380.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002589/0.3537, allocations: 1.308 MB / 381.5 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.248e-05/0.3537, allocations: 6.062 kB / 381.5 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001397/0.3539, allocations: 51.72 kB / 381.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.541e-05/0.3539, allocations: 31.34 kB / 381.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002691/0.3566, allocations: 1.191 MB / 382.8 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006868/0.3635, allocations: 4.293 MB / 387.1 MB, free: 3.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.3659, allocations: 2.45 MB / 389.5 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009164/0.3668, allocations: 0.5094 MB / 390 MB, free: 1.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000169/0.367, allocations: 186.2 kB / 390.2 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.367, allocations: 44.19 kB / 390.3 MB, free: 1.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 3.246e-06/0.367, allocations: 0 / 390.3 MB, free: 1.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01062/0.3777, allocations: 3.782 MB / 394 MB, free: 15.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.3778, allocations: 92.33 kB / 394.1 MB, free: 15.83 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000649/0.3785, allocations: 392.1 kB / 394.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.147e-05/0.3786, allocations: 46.64 kB / 394.6 MB, free: 15.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003645/0.3789, allocations: 451.1 kB / 395 MB, free: 15.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003914/0.3793, allocations: 430.1 kB / 395.4 MB, free: 14.83 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003564/0.3797, allocations: 225.3 kB / 395.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.3799, allocations: 376.6 kB / 396 MB, free: 14.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.381, allocations: 433.3 kB / 396.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.3823, allocations: 0.6949 MB / 397.1 MB, free: 13.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002303/0.3846, allocations: 1.177 MB / 398.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.3847, allocations: 8.875 kB / 398.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003063/0.3877, allocations: 1.467 MB / 399.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.3878, allocations: 9.375 kB / 399.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.3878, allocations: 10.19 kB / 399.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005695/0.3884, allocations: 197.6 kB / 400 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.3896, allocations: 295.3 kB / 400.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004721/0.3943, allocations: 4.367 MB / 404.6 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.3954, allocations: 79.62 kB / 404.7 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.671e-05/0.3955, allocations: 51.75 kB / 404.8 MB, free: 8.043 MB / 318.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.0004611/0.396, allocations: 270.6 kB / 405 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001537/0.3961, allocations: 67.16 kB / 405.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003088/0.3992, allocations: 1.342 MB / 406.4 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.3992, allocations: 12 kB / 406.5 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.3993, allocations: 9.125 kB / 406.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.3993, allocations: 3.984 kB / 406.5 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004835/0.4041, allocations: 2.615 MB / 409.1 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.4041, allocations: 3.938 kB / 409.1 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009506/0.4051, allocations: 207.9 kB / 409.3 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004598/0.4056, allocations: 171.2 kB / 409.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.371e-05/0.4056, allocations: 24 kB / 409.5 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004452/0.4101, allocations: 4.185 MB / 413.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.4101, allocations: 10.84 kB / 413.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004162/0.4143, allocations: 1.867 MB / 415.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005024/0.4148, allocations: 224.1 kB / 415.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.415, allocations: 24 kB / 415.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006965/0.4157, allocations: 68 kB / 415.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/0.416, allocations: 84.88 kB / 415.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.178e-05/0.416, allocations: 35.98 kB / 416 MB, free: 12.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003647/0.4164, allocations: 267.2 kB / 416.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4164, allocations: 0 / 416.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001489/0.4179, allocations: 312 kB / 416.5 MB, free: 12 MB / 334.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.004695/0.4226, allocations: 2.483 MB / 419 MB, free: 9.496 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004104/0.4268, allocations: 1.496 MB / 420.5 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4268, allocations: 1.125 kB / 420.5 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.4284, allocations: 0.8605 MB / 421.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007092/0.4291, allocations: 73.56 kB / 421.5 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/0.4435, allocations: 7.856 MB / 429.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007338/0.4442, allocations: 1.005 MB / 430.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007473/0.445, allocations: 142.6 kB / 430.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005197/0.4455, allocations: 343.5 kB / 430.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4455, allocations: 0 / 430.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05656/0.5021, allocations: 17.07 MB / 447.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.88, allocations: 12.36 kB / 447.9 MB, free: 12.62 MB / 366.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)