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.001239/0.001239, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2371/0.2371, allocations: 46.11 MB / 344.2 MB, free: 11.58 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.00243/0.00243, allocations: 80.19 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1359, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003977/0.14, allocations: 2.369 MB / 482.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.1412, allocations: 0.6584 MB / 483.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.46e-05/0.1413, allocations: 4 kB / 483.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.646e-05/0.1414, allocations: 43.58 kB / 483.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.1416, allocations: 71.34 kB / 483.4 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002724/0.1418, allocations: 95.81 kB / 483.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003339/0.1422, allocations: 339.2 kB / 483.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002938/0.1425, allocations: 159.4 kB / 483.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002444/0.1427, allocations: 143.6 kB / 484.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.143, allocations: 155.4 kB / 484.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.814e-05/0.143, allocations: 36 kB / 484.3 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.407e-05/0.1431, allocations: 36 kB / 484.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.429e-05/0.1432, allocations: 67.77 kB / 484.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.1433, allocations: 163.2 kB / 484.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003746/0.1437, allocations: 382.9 kB / 484.9 MB, free: 440 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1437, allocations: 0 / 484.9 MB, free: 440 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1437, allocations: 0 / 484.9 MB, free: 440 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1438, allocations: 0 / 484.9 MB, free: 440 kB / 350.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.000966/0.1447, allocations: 0.5733 MB / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.1448, allocations: 12.02 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.936e-05/0.1449, allocations: 70.73 kB / 485.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002985/0.1452, allocations: 48.53 kB / 485.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.1454, allocations: 203.9 kB / 485.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.735e-05/0.1455, allocations: 21.22 kB / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.342e-05/0.1455, allocations: 32.38 kB / 485.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.146, allocations: 285.9 kB / 486.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.146, allocations: 0 / 486.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.1461, allocations: 12 kB / 486.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.1461, allocations: 12 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004464/0.1465, allocations: 218.5 kB / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.1483, allocations: 1.017 MB / 487.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.309e-05/0.1484, allocations: 42.5 kB / 487.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.716e-05/0.1485, allocations: 24.92 kB / 487.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.1485, allocations: 0 / 487.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.1485, allocations: 38.44 kB / 487.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.1485, allocations: 0 / 487.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002247/0.1487, allocations: 73.42 kB / 487.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.1488, allocations: 55.39 kB / 487.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004055/0.1492, allocations: 323 kB / 487.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.1492, allocations: 25.7 kB / 488 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.1494, allocations: 238.7 kB / 488.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.579e-05/0.1495, allocations: 11.91 kB / 488.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.842e-05/0.1496, allocations: 57.61 kB / 488.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1497, allocations: 330.8 kB / 488.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.1499, allocations: 67.97 kB / 488.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.1501, allocations: 97.67 kB / 488.7 MB, free: 12.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.1503, allocations: 125.6 kB / 488.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1503, allocations: 0 / 488.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004349/0.1508, allocations: 233.8 kB / 489.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1508, allocations: 11.94 kB / 489.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1508, allocations: 0 / 489.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.1508, allocations: 0 / 489.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003168/0.1511, allocations: 55.95 kB / 489.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1512, allocations: 7.969 kB / 489.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.1514, allocations: 43.52 kB / 489.2 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.1515, allocations: 8 kB / 489.2 MB, free: 11.86 MB / 366.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.0001351/0.1516, allocations: 133.8 kB / 489.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.1516, allocations: 19.75 kB / 489.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.72e-05/0.1517, allocations: 24.89 kB / 489.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1517, allocations: 0 / 489.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1517, allocations: 0 / 489.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.1517, allocations: 7.938 kB / 489.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006689/0.1524, allocations: 0.5032 MB / 489.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1524, allocations: 0 / 489.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.077e-05/0.1525, allocations: 11.92 kB / 489.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1525, allocations: 3.938 kB / 489.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.1525, allocations: 0 / 489.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1525, allocations: 3.938 kB / 489.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1525, allocations: 0 / 489.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000142/0.1526, allocations: 101.8 kB / 490 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.501e-05/0.1527, allocations: 100.8 kB / 490.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.1528, allocations: 7.984 kB / 490.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.1529, allocations: 0 / 490.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.564e-05/0.1529, allocations: 3.984 kB / 490.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.1529, allocations: 4 kB / 490.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002682/0.1532, allocations: 230 kB / 490.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1532, allocations: 0 / 490.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002871/0.1535, allocations: 63.84 kB / 490.4 MB, free: 10.54 MB / 366.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.0004684/0.154, allocations: 0.6364 MB / 491.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002783/0.1543, allocations: 115.9 kB / 491.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1543, allocations: 0 / 491.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.181e-05/0.1543, allocations: 15.94 kB / 491.2 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.1546, allocations: 26.17 kB / 491.2 MB, free: 9.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.1575, allocations: 2.235 MB / 493.5 MB, free: 7.391 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003927/0.1579, allocations: 0.7401 MB / 494.2 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.158, allocations: 17.95 kB / 494.2 MB, free: 6.605 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.1581, allocations: 75.41 kB / 494.3 MB, free: 6.531 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1581, allocations: 0 / 494.3 MB, free: 6.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02631/0.1845, allocations: 4.055 MB / 498.3 MB, free: 2.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.885/8.07, allocations: 1.078 kB / 498.3 MB, free: 2.574 MB / 366.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)