Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001702/0.001702, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00194/0.00194, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.4 MB / 247 MB, free: 10.39 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.228/0.228, allocations: 46.1 MB / 344.3 MB, free: 11.45 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.002275/0.002276, allocations: 79.86 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3222, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003905/0.3262, allocations: 2.365 MB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.3276, allocations: 0.6589 MB / 0.5336 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.755e-05/0.3277, allocations: 4.125 kB / 0.5336 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.3278, allocations: 43.7 kB / 0.5336 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.328, allocations: 71.59 kB / 0.5337 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003678/0.3284, allocations: 88.12 kB / 0.5338 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003806/0.3288, allocations: 346.1 kB / 0.5341 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003199/0.3291, allocations: 161.9 kB / 0.5342 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002888/0.3294, allocations: 155.4 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.3297, allocations: 151.5 kB / 0.5345 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.232e-05/0.3297, allocations: 37.62 kB / 0.5346 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.026e-05/0.3298, allocations: 38.62 kB / 0.5346 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.732e-05/0.3299, allocations: 64.23 kB / 0.5347 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.3301, allocations: 162.6 kB / 0.5348 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004662/0.3305, allocations: 379.8 kB / 0.5352 GB, free: 9.809 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.3305, allocations: 1.312 kB / 0.5352 GB, free: 9.809 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3306, allocations: 0 / 0.5352 GB, free: 9.809 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.3306, allocations: 3.938 kB / 0.5352 GB, free: 9.805 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009746/0.3316, allocations: 0.5798 MB / 0.5358 GB, free: 9.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.3316, allocations: 9.625 kB / 0.5358 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.674e-05/0.3317, allocations: 72.34 kB / 0.5358 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003008/0.332, allocations: 49.44 kB / 0.5359 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.3322, allocations: 203 kB / 0.5361 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.3323, allocations: 21.41 kB / 0.5361 GB, free: 8.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.3323, allocations: 32.69 kB / 0.5361 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005387/0.3329, allocations: 281.5 kB / 0.5364 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.3329, allocations: 0 / 0.5364 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.3329, allocations: 15.16 kB / 0.5364 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.333, allocations: 7.406 kB / 0.5364 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004317/0.3334, allocations: 215.2 kB / 0.5366 GB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.3351, allocations: 1.028 MB / 0.5376 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.142e-05/0.3352, allocations: 30.55 kB / 0.5376 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.805e-05/0.3353, allocations: 25.23 kB / 0.5377 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.968e-06/0.3353, allocations: 1.125 kB / 0.5377 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.3353, allocations: 30.56 kB / 0.5377 GB, free: 7.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/0.3354, allocations: 1.125 kB / 0.5377 GB, free: 7.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002127/0.3356, allocations: 81 kB / 0.5378 GB, free: 7.691 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.3356, allocations: 56.38 kB / 0.5378 GB, free: 7.625 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000399/0.336, allocations: 320.8 kB / 0.5381 GB, free: 7.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.3361, allocations: 27.05 kB / 0.5382 GB, free: 7.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.3362, allocations: 234.8 kB / 0.5384 GB, free: 7.164 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/0.3363, allocations: 17.97 kB / 0.5384 GB, free: 7.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.63e-05/0.3364, allocations: 53.5 kB / 0.5385 GB, free: 7.109 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3365, allocations: 331.4 kB / 0.5388 GB, free: 6.781 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.3367, allocations: 68.25 kB / 0.5388 GB, free: 6.746 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.3368, allocations: 85.47 kB / 0.5389 GB, free: 6.695 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002135/0.3371, allocations: 118.9 kB / 0.539 GB, free: 6.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3371, allocations: 1 kB / 0.539 GB, free: 6.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004089/0.3375, allocations: 242.3 kB / 0.5393 GB, free: 6.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.3375, allocations: 9.625 kB / 0.5393 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3375, allocations: 5.219 kB / 0.5393 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.3376, allocations: 1.156 kB / 0.5393 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.3379, allocations: 57.09 kB / 0.5393 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.3379, allocations: 5.109 kB / 0.5393 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.3382, allocations: 39.14 kB / 0.5394 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.3382, allocations: 5.5 kB / 0.5394 GB, free: 6.434 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (30): * Single equations (assignments): 30 * 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.0001313/0.3383, allocations: 131.5 kB / 0.5395 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.635e-05/0.3384, allocations: 24.45 kB / 0.5395 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.377e-05/0.3384, allocations: 24.08 kB / 0.5396 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3384, allocations: 7.938 kB / 0.5396 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3384, allocations: 1.031 kB / 0.5396 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.3384, allocations: 3.938 kB / 0.5396 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000664/0.3391, allocations: 0.5142 MB / 0.5401 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3391, allocations: 0 / 0.5401 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.233e-05/0.3392, allocations: 3.156 kB / 0.5401 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.3392, allocations: 1 kB / 0.5401 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.3392, allocations: 5.188 kB / 0.5401 GB, free: 5.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3392, allocations: 0 / 0.5401 GB, free: 5.742 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3392, allocations: 1.062 kB / 0.5401 GB, free: 5.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.3394, allocations: 100.1 kB / 0.5402 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.807e-05/0.3395, allocations: 106.5 kB / 0.5403 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.3395, allocations: 1.062 kB / 0.5403 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.3396, allocations: 9.188 kB / 0.5403 GB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.234e-05/0.3396, allocations: 1.281 kB / 0.5403 GB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.3396, allocations: 1.438 kB / 0.5403 GB, free: 5.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002579/0.3399, allocations: 223.1 kB / 0.5405 GB, free: 5.375 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3399, allocations: 0 / 0.5405 GB, free: 5.375 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002681/0.3402, allocations: 64.55 kB / 0.5406 GB, free: 5.363 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0004648/0.3407, allocations: 0.637 MB / 0.5412 GB, free: 4.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002597/0.3409, allocations: 109.3 kB / 0.5413 GB, free: 4.688 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3409, allocations: 0 / 0.5413 GB, free: 4.688 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.438e-05/0.341, allocations: 10.69 kB / 0.5413 GB, free: 4.684 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.3413, allocations: 21.62 kB / 0.5413 GB, free: 4.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.3443, allocations: 2.234 MB / 0.5435 GB, free: 2.941 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.3447, allocations: 0.7401 MB / 0.5442 GB, free: 2.215 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001433/0.3449, allocations: 28.05 kB / 0.5443 GB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.345, allocations: 71.78 kB / 0.5443 GB, free: 2.137 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.345, allocations: 1.219 kB / 0.5443 GB, free: 2.137 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02672/0.3717, allocations: 4.188 MB / 0.5484 GB, free: 15.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.719/8.091, allocations: 1.078 kB / 0.5484 GB, free: 15.04 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_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_Shapes_Leakage.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1)