Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.FixedShape,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 118.8 kB / 17.78 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.001476/0.001476, allocations: 202 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.491/1.491, 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.2323/0.2323, allocations: 46.12 MB / 344.4 MB, free: 11.43 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.002317/0.002317, allocations: 83.86 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3277, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003849/0.3316, allocations: 2.484 MB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.3333, allocations: 0.844 MB / 0.5338 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.3334, allocations: 2.938 kB / 0.5338 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.3337, allocations: 59.41 kB / 0.5339 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003101/0.334, allocations: 104.4 kB / 0.534 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003198/0.3343, allocations: 106.4 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003975/0.3348, allocations: 350.3 kB / 0.5344 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.335, allocations: 89.94 kB / 0.5345 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002889/0.3353, allocations: 145.2 kB / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.3355, allocations: 159.3 kB / 0.5348 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.3356, allocations: 28.88 kB / 0.5348 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.77e-05/0.3357, allocations: 35.62 kB / 0.5349 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.963e-05/0.3357, allocations: 71.95 kB / 0.5349 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.3359, allocations: 153.8 kB / 0.5351 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005007/0.3364, allocations: 378.8 kB / 0.5355 GB, free: 9.594 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3364, allocations: 0 / 0.5355 GB, free: 9.594 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3364, allocations: 0.9375 kB / 0.5355 GB, free: 9.594 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.3365, allocations: 0 / 0.5355 GB, free: 9.594 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001175/0.3376, allocations: 0.6359 MB / 0.5361 GB, free: 9.031 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3377, allocations: 9.25 kB / 0.5361 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.557e-05/0.3378, allocations: 62.59 kB / 0.5361 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.3379, allocations: 48.39 kB / 0.5362 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004069/0.3384, allocations: 266.3 kB / 0.5364 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.263e-05/0.3384, allocations: 18.56 kB / 0.5365 GB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.117e-05/0.3385, allocations: 24.41 kB / 0.5365 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005421/0.339, allocations: 246.5 kB / 0.5367 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.339, allocations: 3.938 kB / 0.5367 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.3391, allocations: 10.69 kB / 0.5367 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.3391, allocations: 6.25 kB / 0.5367 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005348/0.3396, allocations: 244.4 kB / 0.537 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.3411, allocations: 0.8762 MB / 0.5378 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005777/0.3417, allocations: 309.1 kB / 0.5381 GB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002939/0.342, allocations: 138.4 kB / 0.5383 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.3421, allocations: 11.2 kB / 0.5383 GB, free: 7.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.3421, allocations: 40.67 kB / 0.5383 GB, free: 7.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.843e-06/0.3421, allocations: 4 kB / 0.5383 GB, free: 7.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.004886/0.347, allocations: 1.257 MB / 0.5395 GB, free: 6.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.3471, allocations: 63.55 kB / 0.5396 GB, free: 6.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002984/0.3474, allocations: 234.5 kB / 0.5398 GB, free: 6.238 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.3475, allocations: 31.64 kB / 0.5399 GB, free: 6.203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.3476, allocations: 167 kB / 0.54 GB, free: 6.051 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.3477, allocations: 114.8 kB / 0.5401 GB, free: 5.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.3478, allocations: 48.27 kB / 0.5402 GB, free: 5.914 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.348, allocations: 336.1 kB / 0.5405 GB, free: 5.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002516/0.3483, allocations: 93.95 kB / 0.5406 GB, free: 5.539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002635/0.3486, allocations: 127.9 kB / 0.5407 GB, free: 5.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004942/0.3491, allocations: 232 kB / 0.5409 GB, free: 5.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3491, allocations: 0 / 0.5409 GB, free: 5.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00185/0.3509, allocations: 0.5454 MB / 0.5415 GB, free: 5.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.351, allocations: 8.938 kB / 0.5415 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.351, allocations: 1.062 kB / 0.5415 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/0.3527, allocations: 314.6 kB / 0.5418 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.3529, allocations: 30.94 kB / 0.5418 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00817/0.3611, allocations: 6.849 MB / 0.5485 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/0.3614, allocations: 23.97 kB / 0.5485 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.3614, allocations: 10.62 kB / 0.5485 GB, free: 14.29 MB / 414.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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001841/0.3616, allocations: 146.1 kB / 0.5487 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.3617, allocations: 32.67 kB / 0.5487 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/0.3636, allocations: 0.5572 MB / 0.5492 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.3636, allocations: 4 kB / 0.5492 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3636, allocations: 3.938 kB / 0.5492 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3637, allocations: 3.984 kB / 0.5492 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005334/0.3642, allocations: 365.2 kB / 0.5496 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3642, allocations: 192 / 0.5496 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.3643, allocations: 19.98 kB / 0.5496 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001624/0.366, allocations: 311.2 kB / 0.5499 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.366, allocations: 7.938 kB / 0.5499 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008628/0.3747, allocations: 6.901 MB / 0.5567 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3747, allocations: 0 / 0.5567 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.3766, allocations: 0.6274 MB / 0.5573 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.3767, allocations: 108.8 kB / 0.5574 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.3768, allocations: 8 kB / 0.5574 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.377, allocations: 11.98 kB / 0.5574 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.3771, allocations: 35.95 kB / 0.5574 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.3771, allocations: 4 kB / 0.5574 GB, free: 4.617 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.3773, allocations: 178 kB / 0.5576 GB, free: 4.445 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3773, allocations: 0 / 0.5576 GB, free: 4.445 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005472/0.3779, allocations: 115.9 kB / 0.5577 GB, free: 4.332 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002213/0.3801, allocations: 1.16 MB / 0.5588 GB, free: 3.133 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.3814, allocations: 0.7686 MB / 0.5596 GB, free: 2.312 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3814, allocations: 0 / 0.5596 GB, free: 2.312 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001364/0.3828, allocations: 0.7406 MB / 0.5603 GB, free: 1.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.3831, allocations: 24.69 kB / 0.5603 GB, free: 1.492 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006647/0.3898, allocations: 3.179 MB / 0.5634 GB, free: 14.19 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.3903, allocations: 0.7717 MB / 0.5642 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.946e-05/0.3904, allocations: 21.94 kB / 0.5642 GB, free: 13.37 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.3905, allocations: 79.41 kB / 0.5643 GB, free: 13.29 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3905, allocations: 0 / 0.5643 GB, free: 13.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04975/0.4402, allocations: 10.99 MB / 0.575 GB, free: 2.484 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.65, allocations: 11.05 kB / 0.575 GB, free: 2.477 MB / 430.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1)