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.001403/0.001403, 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.001372/0.001372, 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.459/1.459, allocations: 227.4 MB / 247 MB, free: 10.4 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.2245/0.2245, allocations: 46.12 MB / 344.4 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.002512/0.002512, allocations: 79.86 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3179, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003951/0.3219, allocations: 2.499 MB / 0.533 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.3235, allocations: 0.8314 MB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001742/0.3237, allocations: 2.75 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.324, allocations: 59.88 kB / 0.5339 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000334/0.3244, allocations: 109.4 kB / 0.534 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.3247, allocations: 97.44 kB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000407/0.3251, allocations: 362.3 kB / 0.5344 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.3253, allocations: 94.58 kB / 0.5345 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003086/0.3256, allocations: 140.4 kB / 0.5347 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002354/0.3258, allocations: 158.5 kB / 0.5348 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.16e-05/0.3259, allocations: 30.31 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.693e-05/0.326, allocations: 31.59 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.3261, allocations: 71.72 kB / 0.535 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.3263, allocations: 161.2 kB / 0.5351 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004709/0.3268, allocations: 371.8 kB / 0.5355 GB, free: 9.617 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3268, allocations: 0 / 0.5355 GB, free: 9.617 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3268, allocations: 4 kB / 0.5355 GB, free: 9.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.3268, allocations: 1.375 kB / 0.5355 GB, free: 9.613 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.001179/0.328, allocations: 0.6425 MB / 0.5361 GB, free: 9.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.328, allocations: 9.625 kB / 0.5361 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.021e-05/0.3281, allocations: 58.77 kB / 0.5362 GB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.3283, allocations: 44.44 kB / 0.5362 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.3287, allocations: 265.8 kB / 0.5365 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.3287, allocations: 22.69 kB / 0.5365 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.3288, allocations: 24.38 kB / 0.5365 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005449/0.3293, allocations: 250.8 kB / 0.5367 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.3293, allocations: 0 / 0.5367 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.3294, allocations: 10.81 kB / 0.5367 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.3294, allocations: 6.781 kB / 0.5368 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005306/0.3299, allocations: 236.1 kB / 0.537 GB, free: 8.395 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.3316, allocations: 0.88 MB / 0.5378 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006256/0.3323, allocations: 306.5 kB / 0.5381 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.3326, allocations: 147 kB / 0.5383 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.725e-05/0.3327, allocations: 2.594 kB / 0.5383 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/0.3327, allocations: 37.19 kB / 0.5383 GB, free: 7.387 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.434e-06/0.3327, allocations: 0 / 0.5383 GB, free: 7.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.004921/0.3377, allocations: 1.261 MB / 0.5395 GB, free: 6.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/0.3378, allocations: 62.09 kB / 0.5396 GB, free: 6.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002841/0.338, allocations: 232.4 kB / 0.5398 GB, free: 6.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.855e-05/0.3381, allocations: 30.98 kB / 0.5399 GB, free: 6.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.3383, allocations: 165.9 kB / 0.54 GB, free: 6.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.3384, allocations: 115.2 kB / 0.5401 GB, free: 5.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.3385, allocations: 52.23 kB / 0.5402 GB, free: 5.934 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3387, allocations: 336.8 kB / 0.5405 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.3389, allocations: 89.14 kB / 0.5406 GB, free: 5.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.3392, allocations: 132 kB / 0.5407 GB, free: 5.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005019/0.3397, allocations: 228.1 kB / 0.5409 GB, free: 5.363 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3397, allocations: 0 / 0.5409 GB, free: 5.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001942/0.3417, allocations: 0.5495 MB / 0.5415 GB, free: 5.047 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.3417, allocations: 5.188 kB / 0.5415 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.3418, allocations: 0 / 0.5415 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001765/0.3435, allocations: 319.8 kB / 0.5418 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.3437, allocations: 26.08 kB / 0.5418 GB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008619/0.3524, allocations: 6.855 MB / 0.5485 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003082/0.3527, allocations: 23.88 kB / 0.5485 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.3527, allocations: 10.66 kB / 0.5485 GB, free: 14.3 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.0002145/0.353, allocations: 144.7 kB / 0.5487 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.849e-05/0.353, allocations: 28.75 kB / 0.5487 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001946/0.355, allocations: 0.5523 MB / 0.5492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.355, allocations: 4 kB / 0.5492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.355, allocations: 3.938 kB / 0.5492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3551, allocations: 0 / 0.5492 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005404/0.3556, allocations: 365.2 kB / 0.5496 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.3556, allocations: 0 / 0.5496 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.3558, allocations: 27.91 kB / 0.5496 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001622/0.3574, allocations: 315.3 kB / 0.5499 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.053e-05/0.3575, allocations: 4 kB / 0.5499 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008757/0.3662, allocations: 6.905 MB / 0.5567 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3663, allocations: 0 / 0.5567 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.3682, allocations: 0.6274 MB / 0.5573 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.3683, allocations: 108.8 kB / 0.5574 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.3684, allocations: 4 kB / 0.5574 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.3686, allocations: 15.98 kB / 0.5574 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.3688, allocations: 31.95 kB / 0.5574 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.3688, allocations: 4 kB / 0.5574 GB, free: 4.633 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002102/0.369, allocations: 174 kB / 0.5576 GB, free: 4.465 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.369, allocations: 0 / 0.5576 GB, free: 4.465 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006031/0.3696, allocations: 127.8 kB / 0.5577 GB, free: 4.34 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.002241/0.3719, allocations: 1.16 MB / 0.5588 GB, free: 3.141 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.3733, allocations: 0.7647 MB / 0.5596 GB, free: 2.324 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3733, allocations: 0 / 0.5596 GB, free: 2.324 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.3747, allocations: 0.7406 MB / 0.5603 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000391/0.3751, allocations: 28.73 kB / 0.5603 GB, free: 1.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006855/0.382, allocations: 3.172 MB / 0.5634 GB, free: 14.21 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000574/0.3827, allocations: 0.7795 MB / 0.5642 GB, free: 13.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.52e-05/0.3828, allocations: 5.969 kB / 0.5642 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.3829, allocations: 75.41 kB / 0.5643 GB, free: 13.32 MB / 430.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3829, allocations: 0 / 0.5643 GB, free: 13.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04956/0.4325, allocations: 11 MB / 0.575 GB, free: 2.496 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.6, allocations: 13.3 kB / 0.575 GB, free: 2.492 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_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_FixedShape.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1)