Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_trunk_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.001111/0.001111, allocations: 99.09 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001348, allocations: 205.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.3 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1937/0.1937, allocations: 45.92 MB / 344 MB, free: 12.13 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003129, allocations: 8 kB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.153, allocations: 63.46 MB / 481.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.002217/0.1552, allocations: 1.564 MB / 483.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009006/0.1562, allocations: 0.5615 MB / 483.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.406e-05/0.1562, allocations: 3.938 kB / 483.7 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.1564, allocations: 27.78 kB / 483.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.1565, allocations: 35.92 kB / 483.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001482/0.1567, allocations: 27.97 kB / 483.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.1568, allocations: 95.81 kB / 483.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.157, allocations: 45.84 kB / 483.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.425e-05/0.1571, allocations: 47.8 kB / 483.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.983e-05/0.1572, allocations: 55.77 kB / 484 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.1572, allocations: 11.98 kB / 484 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.142e-05/0.1572, allocations: 8 kB / 484 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.1573, allocations: 23.86 kB / 484 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.433e-05/0.1573, allocations: 49.64 kB / 484.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.1575, allocations: 119.9 kB / 484.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.1575, allocations: 0 / 484.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1575, allocations: 0 / 484.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1575, allocations: 0 / 484.2 MB, free: 2.613 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.0006193/0.1581, allocations: 435.1 kB / 484.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.1582, allocations: 8.031 kB / 484.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.662e-05/0.1582, allocations: 46.55 kB / 484.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.06e-05/0.1583, allocations: 15.81 kB / 484.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.1585, allocations: 202.8 kB / 484.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.1585, allocations: 8.281 kB / 484.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.1585, allocations: 12 kB / 484.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.1589, allocations: 144.7 kB / 485 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.1589, allocations: 0 / 485 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.1589, allocations: 4 kB / 485 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.159, allocations: 4 kB / 485 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003057/0.1593, allocations: 116.8 kB / 485.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.1604, allocations: 0.6185 MB / 485.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002722/0.1607, allocations: 70.58 kB / 485.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.1607, allocations: 8.031 kB / 485.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.1608, allocations: 38.5 kB / 485.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.513e-06/0.1608, allocations: 0 / 485.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004635/0.1613, allocations: 129.6 kB / 486 MB, free: 0.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.1613, allocations: 51.41 kB / 486.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.1615, allocations: 151 kB / 486.2 MB, free: 364 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.1615, allocations: 25.7 kB / 486.2 MB, free: 332 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.363e-05/0.1616, allocations: 131.5 kB / 486.4 MB, free: 196 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.086e-05/0.1616, allocations: 19.73 kB / 486.4 MB, free: 176 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-06/0.1616, allocations: 4 kB / 486.4 MB, free: 172 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1618, allocations: 326.8 kB / 486.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.1619, allocations: 27.98 kB / 486.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.1621, allocations: 76.08 kB / 486.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.1622, allocations: 43.97 kB / 486.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1622, allocations: 0 / 486.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003004/0.1625, allocations: 137.4 kB / 487 MB, free: 15.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1625, allocations: 8 kB / 487 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1626, allocations: 0 / 487 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.1626, allocations: 7.984 kB / 487 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.1627, allocations: 27.94 kB / 487 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.1628, allocations: 12.11 kB / 487 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.1629, allocations: 19.84 kB / 487.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.1629, allocations: 4.25 kB / 487.1 MB, free: 15.46 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.163, allocations: 121.8 kB / 487.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.1631, allocations: 11.89 kB / 487.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.995e-05/0.1631, allocations: 12.31 kB / 487.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.1631, allocations: 0 / 487.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.1631, allocations: 11.95 kB / 487.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1631, allocations: 0 / 487.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002506/0.1634, allocations: 209.6 kB / 487.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1634, allocations: 0 / 487.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.414e-05/0.1635, allocations: 15.98 kB / 487.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-05/0.1635, allocations: 4 kB / 487.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.1635, allocations: 0 / 487.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1635, allocations: 0 / 487.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1636, allocations: 0 / 487.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003192/0.1639, allocations: 203.2 kB / 487.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.441e-05/0.164, allocations: 89.02 kB / 487.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.164, allocations: 0 / 487.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.1641, allocations: 11.98 kB / 487.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.854e-05/0.1642, allocations: 7.984 kB / 487.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.1642, allocations: 0 / 487.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.314e-05/0.1643, allocations: 114.8 kB / 487.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1643, allocations: 0 / 487.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002608/0.1645, allocations: 27.89 kB / 487.9 MB, free: 14.55 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005904/0.1651, allocations: 0.7207 MB / 488.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002659/0.1654, allocations: 87.83 kB / 488.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1654, allocations: 0 / 488.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.1655, allocations: 35.92 kB / 488.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.1658, allocations: 7.984 kB / 488.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.1673, allocations: 1.386 MB / 490.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.1676, allocations: 0.7158 MB / 490.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.678e-05/0.1677, allocations: 4.672 kB / 490.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.274e-05/0.1678, allocations: 35.42 kB / 490.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1678, allocations: 0 / 490.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01237/0.1802, allocations: 1.823 MB / 492.7 MB, free: 9.734 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002651/0.1805, allocations: 167.1 kB / 492.9 MB, free: 9.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/1.912, allocations: 7.938 kB / 492.9 MB, free: 9.492 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat does not exist to compare? outputFormat=mat