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.001305/0.001305, allocations: 103.6 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.001273/0.001273, 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.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2381/0.2381, allocations: 46.11 MB / 344.2 MB, free: 11.56 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.00228/0.00228, allocations: 80.55 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1362, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003856/0.1401, allocations: 2.369 MB / 482.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.1412, allocations: 0.6584 MB / 483.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.979e-05/0.1413, allocations: 8 kB / 483.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.938e-05/0.1414, allocations: 39.58 kB / 483.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001783/0.1416, allocations: 71.33 kB / 483.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002781/0.1419, allocations: 91.83 kB / 483.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003507/0.1422, allocations: 339.3 kB / 483.8 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.1425, allocations: 159.4 kB / 483.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002551/0.1428, allocations: 143.6 kB / 484.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.143, allocations: 151.4 kB / 484.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.194e-05/0.1431, allocations: 32 kB / 484.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.304e-05/0.1432, allocations: 36 kB / 484.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.421e-05/0.1432, allocations: 71.75 kB / 484.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.1434, allocations: 163.2 kB / 484.5 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003807/0.1438, allocations: 378.9 kB / 484.9 MB, free: 436 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.1438, allocations: 0 / 484.9 MB, free: 436 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1438, allocations: 3.938 kB / 484.9 MB, free: 432 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.1438, allocations: 0 / 484.9 MB, free: 432 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.001038/0.1449, allocations: 0.5811 MB / 485.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.1449, allocations: 8.031 kB / 485.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.239e-05/0.145, allocations: 74.7 kB / 485.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000322/0.1454, allocations: 48.55 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001944/0.1456, allocations: 199.9 kB / 485.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.046e-05/0.1457, allocations: 29.22 kB / 485.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.589e-05/0.1457, allocations: 28.38 kB / 485.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004884/0.1462, allocations: 286 kB / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.1462, allocations: 0 / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.984e-05/0.1463, allocations: 12 kB / 486.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1463, allocations: 8 kB / 486.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004181/0.1467, allocations: 214.5 kB / 486.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.1485, allocations: 1.028 MB / 487.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.321e-05/0.1486, allocations: 34.58 kB / 487.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.722e-05/0.1487, allocations: 24.92 kB / 487.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.1487, allocations: 3.938 kB / 487.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.1487, allocations: 38.48 kB / 487.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 3.206e-06/0.1487, allocations: 4 kB / 487.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002203/0.149, allocations: 73.36 kB / 487.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.149, allocations: 51.41 kB / 487.6 MB, free: 13.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000419/0.1494, allocations: 322.8 kB / 487.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.1495, allocations: 25.7 kB / 488 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.1496, allocations: 238.8 kB / 488.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.1497, allocations: 7.906 kB / 488.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.1498, allocations: 65.59 kB / 488.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.1499, allocations: 331 kB / 488.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.1501, allocations: 67.97 kB / 488.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.1503, allocations: 93.67 kB / 488.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.1506, allocations: 121.6 kB / 488.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1506, allocations: 0 / 488.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004352/0.151, allocations: 237.8 kB / 489.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.151, allocations: 15.97 kB / 489.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.151, allocations: 0 / 489.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.1511, allocations: 0 / 489.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003094/0.1514, allocations: 55.95 kB / 489.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.1514, allocations: 3.938 kB / 489.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.1517, allocations: 39.53 kB / 489.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.1517, allocations: 8 kB / 489.2 MB, free: 11.85 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.0001745/0.1519, allocations: 129.8 kB / 489.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.869e-05/0.1519, allocations: 27.73 kB / 489.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.152, allocations: 20.91 kB / 489.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.152, allocations: 0 / 489.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.152, allocations: 3.984 kB / 489.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-06/0.152, allocations: 0 / 489.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006923/0.1527, allocations: 0.511 MB / 489.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1527, allocations: 4 kB / 489.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.221e-05/0.1528, allocations: 4 kB / 489.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1528, allocations: 4.062 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-06/0.1528, allocations: 3.938 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1528, allocations: 3.938 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1528, allocations: 0 / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/0.1529, allocations: 97.73 kB / 490 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.609e-05/0.153, allocations: 100.8 kB / 490.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.1531, allocations: 8.031 kB / 490.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.1532, allocations: 3.938 kB / 490.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.987e-05/0.1532, allocations: 4 kB / 490.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.1532, allocations: 7.984 kB / 490.1 MB, free: 10.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002662/0.1535, allocations: 218 kB / 490.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1535, allocations: 0 / 490.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002742/0.1538, allocations: 63.84 kB / 490.4 MB, free: 10.53 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.0004676/0.1543, allocations: 0.6403 MB / 491.1 MB, free: 9.859 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002691/0.1546, allocations: 119.9 kB / 491.2 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.1546, allocations: 0 / 491.2 MB, free: 9.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.534e-05/0.1546, allocations: 11.94 kB / 491.2 MB, free: 9.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.1549, allocations: 27.33 kB / 491.2 MB, free: 9.707 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002974/0.1579, allocations: 2.227 MB / 493.4 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004312/0.1584, allocations: 0.744 MB / 494.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000127/0.1585, allocations: 25.94 kB / 494.2 MB, free: 6.586 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.1586, allocations: 71.41 kB / 494.3 MB, free: 6.516 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1586, allocations: 0 / 494.3 MB, free: 6.516 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02704/0.1857, allocations: 4.062 MB / 498.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.331/7.517, allocations: 4.344 kB / 498.3 MB, free: 2.555 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 & /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)