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.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001704/0.001704, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001942/0.001943, allocations: 202 kB / 18.74 MB, free: 4.332 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.561/1.561, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.002065/0.002065, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3399, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004808/0.3448, allocations: 2.773 MB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.3468, allocations: 0.9462 MB / 412.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001818/0.3471, allocations: 4 kB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002809/0.3473, allocations: 63.5 kB / 412.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000323/0.3477, allocations: 115.1 kB / 413 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.348, allocations: 103.8 kB / 413.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.3486, allocations: 358.6 kB / 413.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.3488, allocations: 113.6 kB / 413.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002529/0.3491, allocations: 139.5 kB / 413.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.3493, allocations: 155.3 kB / 413.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.233e-05/0.3494, allocations: 28 kB / 413.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.23e-05/0.3495, allocations: 35.98 kB / 413.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.286e-05/0.3496, allocations: 67.77 kB / 413.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.3497, allocations: 151.2 kB / 414.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005502/0.3503, allocations: 377.4 kB / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3503, allocations: 0 / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3503, allocations: 0 / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.3503, allocations: 0 / 414.5 MB, free: 11.95 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001248/0.3516, allocations: 0.6155 MB / 415.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.3516, allocations: 12.03 kB / 415.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.929e-05/0.3517, allocations: 58.73 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.3519, allocations: 40.73 kB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004472/0.3524, allocations: 276.7 kB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.3524, allocations: 28.88 kB / 415.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.265e-05/0.3525, allocations: 24.38 kB / 415.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005183/0.353, allocations: 253 kB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.353, allocations: 0 / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.3531, allocations: 8 kB / 415.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.3531, allocations: 8 kB / 415.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004822/0.3536, allocations: 218.1 kB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.3555, allocations: 1.006 MB / 417 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004537/0.3559, allocations: 202.5 kB / 417.2 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002597/0.3562, allocations: 104.8 kB / 417.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.3562, allocations: 4 kB / 417.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.56e-05/0.3563, allocations: 38.59 kB / 417.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 4.619e-06/0.3563, allocations: 4 kB / 417.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.005431/0.3618, allocations: 1.558 MB / 418.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.3618, allocations: 59.34 kB / 418.9 MB, free: 7.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.3621, allocations: 233 kB / 419.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.3622, allocations: 33.7 kB / 419.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.3624, allocations: 188.5 kB / 419.4 MB, free: 6.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3625, allocations: 122.9 kB / 419.5 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.3626, allocations: 66.06 kB / 419.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.3628, allocations: 342.8 kB / 419.9 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.3631, allocations: 108.7 kB / 420 MB, free: 6.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.3634, allocations: 153.7 kB / 420.2 MB, free: 5.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005634/0.364, allocations: 287.6 kB / 420.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.364, allocations: 0 / 420.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001954/0.3659, allocations: 0.5335 MB / 421 MB, free: 5.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.366, allocations: 12 kB / 421 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.366, allocations: 0 / 421 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001947/0.368, allocations: 241.5 kB / 421.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004581/0.3684, allocations: 63.91 kB / 421.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007984/0.3764, allocations: 4.14 MB / 425.4 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003225/0.3768, allocations: 16.02 kB / 425.4 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.3769, allocations: 8 kB / 425.4 MB, free: 300 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (29): * Single equations (assignments): 27 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002474/0.3771, allocations: 154.9 kB / 425.6 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.097e-05/0.3772, allocations: 27.86 kB / 425.6 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.3773, allocations: 46.95 kB / 425.7 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3773, allocations: 8.219 kB / 425.7 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.3773, allocations: 0 / 425.7 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.3774, allocations: 3.984 kB / 425.7 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002563/0.3799, allocations: 0.9891 MB / 426.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.38, allocations: 4.031 kB / 426.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003086/0.3803, allocations: 39.97 kB / 426.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001812/0.3821, allocations: 249.4 kB / 427 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.094e-05/0.3822, allocations: 8 kB / 427 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007623/0.3898, allocations: 4.122 MB / 431.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.3898, allocations: 0 / 431.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/0.3928, allocations: 0.7293 MB / 431.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.393, allocations: 105 kB / 431.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.393, allocations: 15.92 kB / 431.9 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003259/0.3934, allocations: 8.281 kB / 431.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002583/0.3937, allocations: 35.89 kB / 432 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.3937, allocations: 12 kB / 432 MB, free: 9.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003043/0.3941, allocations: 168.4 kB / 432.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3941, allocations: 64 / 432.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009448/0.395, allocations: 108 kB / 432.3 MB, free: 9.074 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003347/0.3984, allocations: 1.277 MB / 433.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001833/0.4003, allocations: 0.5559 MB / 434.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.4003, allocations: 4.062 kB / 434.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000789/0.4011, allocations: 433.1 kB / 434.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.4015, allocations: 24.44 kB / 434.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008186/0.4097, allocations: 3.373 MB / 437.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008958/0.4107, allocations: 0.7762 MB / 438.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000154/0.4108, allocations: 22.3 kB / 438.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.411, allocations: 95.39 kB / 438.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of SimCode: time 1.222e-06/0.411, allocations: 0 / 438.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05618/0.4672, allocations: 8.499 MB / 447.3 MB, free: 9.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.59, allocations: 6.656 kB / 447.3 MB, free: 9.961 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 4e-05 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1)