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.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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_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.001387/0.001387, allocations: 117.2 kB / 17.78 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 200.6 kB / 18.73 MB, free: 4.426 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.507/1.507, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.002146/0.002147, allocations: 71.83 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3427, allocations: 50.54 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.005659/0.3484, allocations: 3.512 MB / 412.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.3508, allocations: 0.9619 MB / 413.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004461/0.3513, allocations: 11.94 kB / 413.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004043/0.3517, allocations: 95.09 kB / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007075/0.3525, allocations: 162.7 kB / 413.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005368/0.353, allocations: 163.8 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000928/0.3539, allocations: 0.6491 MB / 414.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003803/0.3543, allocations: 189.5 kB / 414.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004128/0.3548, allocations: 239 kB / 415 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004197/0.3552, allocations: 278.6 kB / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.649e-05/0.3553, allocations: 52 kB / 415.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.513e-05/0.3554, allocations: 56 kB / 415.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.3555, allocations: 115.6 kB / 415.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.3559, allocations: 298.4 kB / 415.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008172/0.3567, allocations: 0.633 MB / 416.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3567, allocations: 0 / 416.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3567, allocations: 0 / 416.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.3567, allocations: 0 / 416.4 MB, free: 9.969 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001767/0.3585, allocations: 0.8725 MB / 417.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.3586, allocations: 12.03 kB / 417.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.3587, allocations: 90.7 kB / 417.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.3588, allocations: 68.45 kB / 417.5 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006011/0.3594, allocations: 363.9 kB / 417.8 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.685e-05/0.3595, allocations: 37.69 kB / 417.9 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.421e-05/0.3596, allocations: 52.12 kB / 417.9 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009002/0.3605, allocations: 434.5 kB / 418.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.3605, allocations: 0 / 418.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.425e-05/0.3606, allocations: 20 kB / 418.4 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.3606, allocations: 12 kB / 418.4 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008984/0.3615, allocations: 389 kB / 418.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002879/0.3644, allocations: 1.589 MB / 420.4 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007961/0.3652, allocations: 397.4 kB / 420.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004312/0.3657, allocations: 184.4 kB / 420.9 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.58e-05/0.3658, allocations: 8.391 kB / 420.9 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.3658, allocations: 34.89 kB / 421 MB, free: 5.199 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 2.414e-06/0.3658, allocations: 0 / 421 MB, free: 5.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.003586/0.3694, allocations: 1.212 MB / 422.2 MB, free: 3.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.3695, allocations: 59.97 kB / 422.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005734/0.3701, allocations: 405.6 kB / 422.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.407e-05/0.3701, allocations: 33.7 kB / 422.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.3704, allocations: 312.7 kB / 423 MB, free: 3.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.3706, allocations: 198.3 kB / 423.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.3708, allocations: 114.2 kB / 423.3 MB, free: 2.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.371, allocations: 358.7 kB / 423.6 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004659/0.3715, allocations: 181.2 kB / 423.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005538/0.372, allocations: 311.1 kB / 424.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009974/0.3731, allocations: 490.5 kB / 424.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.3731, allocations: 7.938 kB / 424.6 MB, free: 1.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001712/0.3748, allocations: 0.7345 MB / 425.3 MB, free: 0.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.3749, allocations: 8 kB / 425.3 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.3749, allocations: 4 kB / 425.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000633/0.3755, allocations: 181.5 kB / 425.5 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005264/0.3761, allocations: 111.9 kB / 425.6 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005091/0.3812, allocations: 4.279 MB / 429.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/0.3818, allocations: 35.92 kB / 429.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.001e-05/0.3819, allocations: 28.06 kB / 430 MB, free: 11.75 MB / 350.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 (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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003023/0.3822, allocations: 182.7 kB / 430.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.662e-05/0.3823, allocations: 51.67 kB / 430.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.3824, allocations: 61.02 kB / 430.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.3824, allocations: 11.98 kB / 430.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/0.3825, allocations: 4 kB / 430.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3825, allocations: 0 / 430.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.3851, allocations: 1.307 MB / 431.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.3852, allocations: 0 / 431.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.3855, allocations: 72.02 kB / 431.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004982/0.386, allocations: 165.5 kB / 431.8 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.845e-05/0.386, allocations: 12 kB / 431.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004543/0.3906, allocations: 4.1 MB / 435.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.3906, allocations: 8.094 kB / 435.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001451/0.3921, allocations: 0.7056 MB / 436.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000218/0.3923, allocations: 128.7 kB / 436.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.18e-05/0.3924, allocations: 8 kB / 436.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.3927, allocations: 32.25 kB / 436.8 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.3929, allocations: 48.31 kB / 436.8 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.767e-05/0.3929, allocations: 12 kB / 436.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003637/0.3933, allocations: 287.1 kB / 437.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3933, allocations: 0 / 437.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007768/0.3941, allocations: 152 kB / 437.3 MB, free: 4.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (35): * Single equations (assignments): 33 * 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.001847/0.3959, allocations: 1.257 MB / 438.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.3977, allocations: 0.7923 MB / 439.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3978, allocations: 0 / 439.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009825/0.3988, allocations: 0.528 MB / 439.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.3993, allocations: 42.62 kB / 439.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008136/0.4075, allocations: 4.677 MB / 444.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006097/0.4081, allocations: 0.8553 MB / 445.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002256/0.4084, allocations: 52.36 kB / 445.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002807/0.4087, allocations: 179.4 kB / 445.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4087, allocations: 3.938 kB / 445.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04604/0.4547, allocations: 9.808 MB / 455.5 MB, free: 1.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.91, allocations: 19.06 kB / 455.5 MB, free: 1.676 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.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_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1)