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.001299/0.001299, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 206 kB / 18.74 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.471/1.471, 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.2308/0.2308, allocations: 46.12 MB / 344.4 MB, free: 11.46 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.00237/0.00237, allocations: 75.86 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3384, allocations: 62.45 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003855/0.3423, allocations: 2.364 MB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.3435, allocations: 0.667 MB / 0.5336 GB, free: 11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.95e-05/0.3436, allocations: 4.312 kB / 0.5336 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.35e-05/0.3437, allocations: 42.95 kB / 0.5336 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.3439, allocations: 76.08 kB / 0.5337 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.3442, allocations: 87.45 kB / 0.5338 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003428/0.3445, allocations: 342.2 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.3448, allocations: 165.4 kB / 0.5342 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.3451, allocations: 146.7 kB / 0.5344 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.3453, allocations: 156.6 kB / 0.5345 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.889e-05/0.3453, allocations: 33 kB / 0.5346 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.404e-05/0.3454, allocations: 35.75 kB / 0.5346 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.964e-05/0.3455, allocations: 68.06 kB / 0.5347 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.3457, allocations: 159.4 kB / 0.5348 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004223/0.3461, allocations: 379.4 kB / 0.5352 GB, free: 9.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3461, allocations: 0 / 0.5352 GB, free: 9.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3461, allocations: 7.938 kB / 0.5352 GB, free: 9.859 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.3461, allocations: 0 / 0.5352 GB, free: 9.859 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.0009426/0.3471, allocations: 0.5838 MB / 0.5358 GB, free: 9.336 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.3471, allocations: 8.844 kB / 0.5358 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.531e-05/0.3472, allocations: 65.23 kB / 0.5358 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002894/0.3475, allocations: 57.8 kB / 0.5359 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/0.3477, allocations: 194.1 kB / 0.5361 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.768e-05/0.3477, allocations: 22.72 kB / 0.5361 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.274e-05/0.3478, allocations: 31.69 kB / 0.5361 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.3483, allocations: 282.9 kB / 0.5364 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.3483, allocations: 3.984 kB / 0.5364 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.3484, allocations: 14.16 kB / 0.5364 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.3484, allocations: 8.406 kB / 0.5364 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004039/0.3488, allocations: 210.7 kB / 0.5366 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.3505, allocations: 1.031 MB / 0.5376 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.168e-05/0.3506, allocations: 27.45 kB / 0.5376 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.821e-05/0.3506, allocations: 24.89 kB / 0.5377 GB, free: 7.852 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.327e-06/0.3507, allocations: 0 / 0.5377 GB, free: 7.852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.3507, allocations: 31.72 kB / 0.5377 GB, free: 7.812 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.3507, allocations: 4 kB / 0.5377 GB, free: 7.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002196/0.3509, allocations: 81.16 kB / 0.5378 GB, free: 7.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.351, allocations: 56.47 kB / 0.5378 GB, free: 7.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003884/0.3514, allocations: 321.9 kB / 0.5381 GB, free: 7.465 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.3514, allocations: 25.7 kB / 0.5382 GB, free: 7.434 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.3516, allocations: 238.8 kB / 0.5384 GB, free: 7.215 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.3516, allocations: 15.7 kB / 0.5384 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.448e-05/0.3517, allocations: 52.31 kB / 0.5385 GB, free: 7.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3519, allocations: 335.1 kB / 0.5388 GB, free: 6.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.352, allocations: 64.91 kB / 0.5388 GB, free: 6.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.3522, allocations: 89.28 kB / 0.5389 GB, free: 6.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.3524, allocations: 127.4 kB / 0.539 GB, free: 6.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3524, allocations: 0 / 0.539 GB, free: 6.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004172/0.3528, allocations: 235.2 kB / 0.5393 GB, free: 6.539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3529, allocations: 13.09 kB / 0.5393 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3529, allocations: 0.8438 kB / 0.5393 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.3529, allocations: 1.031 kB / 0.5393 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.3532, allocations: 57.2 kB / 0.5393 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.3532, allocations: 2.312 kB / 0.5393 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/0.3535, allocations: 38.2 kB / 0.5394 GB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.3535, allocations: 5.281 kB / 0.5394 GB, free: 6.488 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.0001304/0.3537, allocations: 131.2 kB / 0.5395 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.775e-05/0.3537, allocations: 33.97 kB / 0.5395 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.43e-05/0.3538, allocations: 14.59 kB / 0.5396 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3538, allocations: 9.484 kB / 0.5396 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3538, allocations: 3.984 kB / 0.5396 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3538, allocations: 0 / 0.5396 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00066/0.3545, allocations: 0.51 MB / 0.5401 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3545, allocations: 1.594 kB / 0.5401 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.196e-05/0.3545, allocations: 2.812 kB / 0.5401 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3545, allocations: 4 kB / 0.5401 GB, free: 5.801 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.3545, allocations: 1.688 kB / 0.5401 GB, free: 5.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3545, allocations: 3.938 kB / 0.5401 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.3546, allocations: 1.469 kB / 0.5401 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001277/0.3547, allocations: 95.58 kB / 0.5402 GB, free: 5.703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.301e-05/0.3548, allocations: 110.7 kB / 0.5403 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.3548, allocations: 4.031 kB / 0.5403 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.3549, allocations: 1.781 kB / 0.5403 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.783e-05/0.355, allocations: 1.344 kB / 0.5403 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.355, allocations: 1.562 kB / 0.5403 GB, free: 5.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002487/0.3552, allocations: 222.8 kB / 0.5405 GB, free: 5.434 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3552, allocations: 0 / 0.5405 GB, free: 5.434 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002732/0.3555, allocations: 64.83 kB / 0.5406 GB, free: 5.422 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.0004251/0.3559, allocations: 0.6404 MB / 0.5412 GB, free: 4.785 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002532/0.3562, allocations: 113.9 kB / 0.5413 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3562, allocations: 0 / 0.5413 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.66e-05/0.3563, allocations: 13.77 kB / 0.5413 GB, free: 4.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003169/0.3566, allocations: 32.77 kB / 0.5413 GB, free: 4.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.3593, allocations: 2.234 MB / 0.5435 GB, free: 2.984 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.3597, allocations: 0.7387 MB / 0.5442 GB, free: 2.258 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.3598, allocations: 24.2 kB / 0.5443 GB, free: 2.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.3599, allocations: 81.22 kB / 0.5443 GB, free: 2.176 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3599, allocations: 0 / 0.5443 GB, free: 2.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.3863, allocations: 4.159 MB / 0.5484 GB, free: 15.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.037/8.423, allocations: 9.078 kB / 0.5484 GB, free: 15.12 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 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)