Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001522/0.001522, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2318/0.2318, allocations: 46.12 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Warning: Requested package Modelica 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.002271/0.002271, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3305, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.00433/0.3349, allocations: 2.682 MB / 0.5332 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.3365, allocations: 0.7926 MB / 0.534 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.3366, allocations: 4.594 kB / 0.534 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002568/0.3369, allocations: 76.83 kB / 0.5341 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.3372, allocations: 107.9 kB / 0.5342 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.3375, allocations: 107 kB / 0.5343 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004524/0.3379, allocations: 421.9 kB / 0.5347 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002607/0.3382, allocations: 140.3 kB / 0.5348 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.3384, allocations: 154.5 kB / 0.535 GB, free: 9.957 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.3386, allocations: 176.5 kB / 0.5351 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.395e-05/0.3387, allocations: 33 kB / 0.5352 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.972e-05/0.3388, allocations: 32.88 kB / 0.5352 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.258e-05/0.3389, allocations: 73.48 kB / 0.5353 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.3391, allocations: 188.9 kB / 0.5354 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005223/0.3396, allocations: 423.2 kB / 0.5358 GB, free: 9.316 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.3396, allocations: 0 / 0.5358 GB, free: 9.316 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3396, allocations: 3.938 kB / 0.5358 GB, free: 9.312 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.3396, allocations: 1.188 kB / 0.5358 GB, free: 9.312 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001171/0.3408, allocations: 0.6812 MB / 0.5365 GB, free: 8.715 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3409, allocations: 9.062 kB / 0.5365 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.058e-05/0.341, allocations: 69.88 kB / 0.5366 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.053e-05/0.341, allocations: 40.3 kB / 0.5366 GB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/0.3415, allocations: 289.8 kB / 0.5369 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.3415, allocations: 27.78 kB / 0.5369 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/0.3415, allocations: 33.06 kB / 0.537 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006945/0.3422, allocations: 354.8 kB / 0.5373 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.3423, allocations: 7.875 kB / 0.5373 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.3423, allocations: 22.77 kB / 0.5373 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.3423, allocations: 8.219 kB / 0.5373 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006337/0.343, allocations: 267.9 kB / 0.5376 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.3451, allocations: 1.344 MB / 0.5389 GB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005141/0.3456, allocations: 197.7 kB / 0.5391 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002353/0.3459, allocations: 80.08 kB / 0.5392 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.3459, allocations: 6.375 kB / 0.5392 GB, free: 6.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.346, allocations: 40.66 kB / 0.5392 GB, free: 6.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.346, allocations: 0 / 0.5392 GB, free: 6.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008416/0.3468, allocations: 256.5 kB / 0.5395 GB, free: 6.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.855e-05/0.3469, allocations: 134.9 kB / 0.5396 GB, free: 6.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003851/0.3473, allocations: 339.1 kB / 0.5399 GB, free: 5.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.3474, allocations: 30.92 kB / 0.5399 GB, free: 5.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.3476, allocations: 241.9 kB / 0.5402 GB, free: 5.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.899e-05/0.3476, allocations: 59.27 kB / 0.5402 GB, free: 5.672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.3477, allocations: 58.81 kB / 0.5403 GB, free: 5.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.3479, allocations: 352.7 kB / 0.5406 GB, free: 5.277 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.3482, allocations: 74.84 kB / 0.5407 GB, free: 5.246 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003115/0.3485, allocations: 178.8 kB / 0.5409 GB, free: 5.086 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005615/0.349, allocations: 247.2 kB / 0.5411 GB, free: 4.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3491, allocations: 5.094 kB / 0.5411 GB, free: 4.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000749/0.3498, allocations: 300.3 kB / 0.5414 GB, free: 4.734 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.3498, allocations: 11.66 kB / 0.5414 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.3499, allocations: 2.594 kB / 0.5414 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.3499, allocations: 8.188 kB / 0.5414 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004387/0.3503, allocations: 93.17 kB / 0.5415 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.3504, allocations: 4.531 kB / 0.5415 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.3507, allocations: 48.11 kB / 0.5415 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.836e-05/0.3507, allocations: 13.62 kB / 0.5416 GB, free: 4.664 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000173/0.3509, allocations: 148.8 kB / 0.5417 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.351, allocations: 38.16 kB / 0.5417 GB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.62e-05/0.3511, allocations: 31.53 kB / 0.5418 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3511, allocations: 3.562 kB / 0.5418 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.3511, allocations: 0.9688 kB / 0.5418 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/0.3511, allocations: 5.078 kB / 0.5418 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008925/0.352, allocations: 0.5941 MB / 0.5424 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.352, allocations: 1.094 kB / 0.5424 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002865/0.3523, allocations: 58.34 kB / 0.5424 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.3523, allocations: 2.688 kB / 0.5424 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.3524, allocations: 10.72 kB / 0.5424 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.3524, allocations: 7.406 kB / 0.5424 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.3524, allocations: 1.125 kB / 0.5424 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006519/0.353, allocations: 409.6 kB / 0.5428 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.661e-05/0.3531, allocations: 102.2 kB / 0.5429 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.649e-05/0.3532, allocations: 10.12 kB / 0.5429 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.3534, allocations: 17.47 kB / 0.5429 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-05/0.3535, allocations: 17.86 kB / 0.543 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.3535, allocations: 8.938 kB / 0.543 GB, free: 3.391 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002893/0.3538, allocations: 238.1 kB / 0.5432 GB, free: 3.238 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3538, allocations: 0 / 0.5432 GB, free: 3.238 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004318/0.3543, allocations: 67.55 kB / 0.5433 GB, free: 3.227 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001/0.3553, allocations: 0.9286 MB / 0.5442 GB, free: 2.355 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005925/0.3559, allocations: 207.1 kB / 0.5444 GB, free: 2.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3559, allocations: 1.25 kB / 0.5444 GB, free: 2.262 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002288/0.3561, allocations: 77.89 kB / 0.5444 GB, free: 2.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.3566, allocations: 29.28 kB / 0.5445 GB, free: 2.211 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004727/0.3613, allocations: 2.991 MB / 0.5474 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.3618, allocations: 0.7791 MB / 0.5482 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000124/0.3619, allocations: 25.92 kB / 0.5482 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.3621, allocations: 107.4 kB / 0.5483 GB, free: 14.78 MB / 414.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3621, allocations: 0 / 0.5483 GB, free: 14.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.3898, allocations: 4.987 MB / 0.5531 GB, free: 9.891 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/8.193, allocations: 6.469 kB / 0.5532 GB, free: 9.887 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1)