Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.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.Sensors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001506/0.001505, 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.001516/0.001516, 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.528/1.528, 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.2332/0.2332, 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.002212/0.002212, allocations: 83.22 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1347, allocations: 62.44 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.003992/0.1387, allocations: 1.927 MB / 482.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1399, allocations: 0.596 MB / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.1401, allocations: 0 / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002183/0.1404, allocations: 39.66 kB / 482.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.1405, allocations: 31.77 kB / 482.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000191/0.1407, allocations: 55.81 kB / 482.9 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.1409, allocations: 147.5 kB / 483 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.1411, allocations: 60.53 kB / 483.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.1412, allocations: 63.72 kB / 483.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.593e-05/0.1413, allocations: 63.75 kB / 483.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.1414, allocations: 15.94 kB / 483.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.994e-05/0.1414, allocations: 16 kB / 483.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.763e-05/0.1415, allocations: 27.92 kB / 483.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.112e-05/0.1415, allocations: 67.66 kB / 483.3 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.1417, allocations: 155.7 kB / 483.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1418, allocations: 0 / 483.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.1418, allocations: 0 / 483.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1418, allocations: 3.938 kB / 483.5 MB, free: 1.852 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0006781/0.1425, allocations: 451.3 kB / 483.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1425, allocations: 12.03 kB / 483.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.574e-05/0.1426, allocations: 42.75 kB / 484 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.5e-05/0.1426, allocations: 16.75 kB / 484 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/0.1429, allocations: 204 kB / 484.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.1429, allocations: 12.66 kB / 484.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.1429, allocations: 12.38 kB / 484.2 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.1433, allocations: 144.8 kB / 484.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1433, allocations: 0 / 484.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.1433, allocations: 4 kB / 484.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.1433, allocations: 4 kB / 484.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002976/0.1436, allocations: 104.8 kB / 484.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.1447, allocations: 0.6183 MB / 485.1 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.145, allocations: 70.61 kB / 485.1 MB, free: 0 / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.1451, allocations: 37.02 kB / 485.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.1452, allocations: 3.938 kB / 485.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.1452, allocations: 30.56 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=5): time 9.02e-07/0.1452, allocations: 0 / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004182/0.1456, allocations: 109.5 kB / 485.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.1457, allocations: 63.39 kB / 485.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.1459, allocations: 146.4 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.1459, allocations: 25.7 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.645e-05/0.146, allocations: 135.5 kB / 485.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.146, allocations: 19.75 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.193e-05/0.1461, allocations: 29.61 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1462, allocations: 318.8 kB / 486 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.1463, allocations: 31.98 kB / 486.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.1465, allocations: 68.2 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.1467, allocations: 96.19 kB / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1467, allocations: 0 / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003031/0.147, allocations: 121.5 kB / 486.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1471, allocations: 11.92 kB / 486.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1471, allocations: 3.938 kB / 486.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.1471, allocations: 12.06 kB / 486.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.1472, allocations: 23.98 kB / 486.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1472, allocations: 0 / 486.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.815e-05/0.1473, allocations: 15.92 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.1474, allocations: 4 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (11): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.1475, allocations: 121.8 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.1475, allocations: 11.81 kB / 486.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.402e-05/0.1476, allocations: 12.31 kB / 486.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.1476, allocations: 11.88 kB / 486.6 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1476, allocations: 0 / 486.6 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1476, allocations: 0 / 486.6 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002604/0.1478, allocations: 213.6 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1479, allocations: 0 / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.228e-05/0.148, allocations: 15.98 kB / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.148, allocations: 0 / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.148, allocations: 4 kB / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.148, allocations: 3.938 kB / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.148, allocations: 0 / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.1483, allocations: 183.4 kB / 487 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.724e-05/0.1484, allocations: 89 kB / 487.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.1484, allocations: 4.25 kB / 487.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.454e-05/0.1485, allocations: 11.94 kB / 487.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.1485, allocations: 7.984 kB / 487.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.1485, allocations: 4 kB / 487.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.812e-05/0.1486, allocations: 118.8 kB / 487.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1486, allocations: 0 / 487.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.1489, allocations: 27.84 kB / 487.2 MB, free: 13.69 MB / 366.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 (5): * Single equations (assignments): 5 * 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.0005719/0.1495, allocations: 0.7162 MB / 488 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002598/0.1497, allocations: 67.89 kB / 488 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1498, allocations: 0 / 488 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.678e-05/0.1499, allocations: 31.91 kB / 488.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.1502, allocations: 12.72 kB / 488.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.1523, allocations: 1.64 MB / 489.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.1526, allocations: 0.708 MB / 490.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.531e-05/0.1527, allocations: 12.55 kB / 490.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.666e-05/0.1528, allocations: 35.42 kB / 490.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of SimCode: time 1.873e-06/0.1528, allocations: 4 kB / 490.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.1776, allocations: 2.095 MB / 492.6 MB, free: 8.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.138/7.316, allocations: 24.75 kB / 492.6 MB, free: 8.273 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1)