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.0013/0.001301, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00148/0.00148, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.4 MB / 246.8 MB, free: 10.47 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.2351/0.2351, allocations: 46.12 MB / 344.2 MB, free: 11.52 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.00265/0.00265, allocations: 80.98 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1346, allocations: 62.44 MB / 480.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004392/0.1391, allocations: 2.697 MB / 482.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.1405, allocations: 0.7791 MB / 483.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.1407, allocations: 12 kB / 483.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000248/0.1409, allocations: 63.38 kB / 483.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002488/0.1412, allocations: 115 kB / 483.9 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/0.1415, allocations: 111.8 kB / 484 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004248/0.1419, allocations: 410.5 kB / 484.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.1422, allocations: 147 kB / 484.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001791/0.1424, allocations: 147.4 kB / 484.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.1426, allocations: 171.2 kB / 484.8 MB, free: 464 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.512e-05/0.1426, allocations: 32 kB / 484.9 MB, free: 432 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.762e-05/0.1427, allocations: 36 kB / 484.9 MB, free: 396 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.167e-05/0.1428, allocations: 79.69 kB / 485 MB, free: 316 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.1429, allocations: 183 kB / 485.2 MB, free: 132 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004246/0.1434, allocations: 426.5 kB / 485.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1434, allocations: 0 / 485.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1434, allocations: 0 / 485.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1434, allocations: 3.984 kB / 485.6 MB, free: 15.71 MB / 366.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.001101/0.1445, allocations: 0.6628 MB / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1446, allocations: 11.97 kB / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.158e-05/0.1446, allocations: 70.72 kB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.22e-05/0.1447, allocations: 48.36 kB / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.145, allocations: 274.6 kB / 486.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.016e-05/0.1451, allocations: 29.38 kB / 486.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.1451, allocations: 28.38 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006754/0.1458, allocations: 370 kB / 487.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.1458, allocations: 0 / 487.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.301e-05/0.1459, allocations: 15.94 kB / 487.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.1459, allocations: 8 kB / 487.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006105/0.1465, allocations: 265.1 kB / 487.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.1486, allocations: 1.361 MB / 488.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000489/0.1491, allocations: 198.5 kB / 488.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.1494, allocations: 83.5 kB / 489 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.1494, allocations: 8 kB / 489 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.1494, allocations: 34.55 kB / 489 MB, free: 12.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.1494, allocations: 3.938 kB / 489 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007923/0.1502, allocations: 249.6 kB / 489.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.923e-05/0.1503, allocations: 132.5 kB / 489.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/0.1507, allocations: 341.6 kB / 489.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.1508, allocations: 25.7 kB / 489.8 MB, free: 11.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.151, allocations: 243.6 kB / 490 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.545e-05/0.151, allocations: 51.2 kB / 490 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.931e-05/0.1511, allocations: 54.02 kB / 490.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.1513, allocations: 346.8 kB / 490.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.1515, allocations: 80.62 kB / 490.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000302/0.1518, allocations: 177 kB / 490.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005266/0.1524, allocations: 251.1 kB / 490.9 MB, free: 9.941 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1524, allocations: 4 kB / 490.9 MB, free: 9.938 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006571/0.1531, allocations: 304.9 kB / 491.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.1531, allocations: 8 kB / 491.2 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.1531, allocations: 4.25 kB / 491.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1531, allocations: 8 kB / 491.2 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003949/0.1535, allocations: 91.81 kB / 491.3 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1536, allocations: 7.984 kB / 491.3 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002582/0.1538, allocations: 43.58 kB / 491.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.1538, allocations: 12 kB / 491.4 MB, free: 9.461 MB / 366.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.000155/0.154, allocations: 149.7 kB / 491.5 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.718e-05/0.1541, allocations: 31.62 kB / 491.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.067e-05/0.1542, allocations: 42.39 kB / 491.6 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1542, allocations: 0 / 491.6 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.1542, allocations: 4 kB / 491.6 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1542, allocations: 0 / 491.6 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007948/0.155, allocations: 0.5954 MB / 492.2 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.155, allocations: 0 / 492.2 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002735/0.1553, allocations: 59.88 kB / 492.3 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1553, allocations: 0 / 492.3 MB, free: 8.496 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.1553, allocations: 7.938 kB / 492.3 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.1554, allocations: 3.938 kB / 492.3 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1554, allocations: 4 kB / 492.3 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005748/0.1559, allocations: 406.8 kB / 492.7 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.786e-05/0.156, allocations: 108.7 kB / 492.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.098e-05/0.1561, allocations: 11.94 kB / 492.8 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.1563, allocations: 15.92 kB / 492.8 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.873e-05/0.1564, allocations: 11.98 kB / 492.8 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-06/0.1564, allocations: 8 kB / 492.8 MB, free: 7.879 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002726/0.1567, allocations: 243.2 kB / 493.1 MB, free: 7.645 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1567, allocations: 3.938 kB / 493.1 MB, free: 7.641 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003836/0.1571, allocations: 71.75 kB / 493.2 MB, free: 7.57 MB / 366.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.0009587/0.1581, allocations: 0.9296 MB / 494.1 MB, free: 6.598 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000546/0.1586, allocations: 203.6 kB / 494.3 MB, free: 6.398 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1586, allocations: 0 / 494.3 MB, free: 6.398 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003043/0.1589, allocations: 80.64 kB / 494.4 MB, free: 6.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/0.1594, allocations: 33.42 kB / 494.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00413/0.1636, allocations: 2.992 MB / 497.4 MB, free: 3.109 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.164, allocations: 0.7791 MB / 498.2 MB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.1641, allocations: 26.2 kB / 498.2 MB, free: 2.281 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001473/0.1643, allocations: 103.4 kB / 498.3 MB, free: 2.18 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1643, allocations: 4 kB / 498.3 MB, free: 2.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02799/0.1923, allocations: 4.842 MB / 0.4913 GB, free: 13.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.295/7.488, allocations: 8.766 kB / 0.4914 GB, free: 13.4 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1)