Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009518/0.0009521, allocations: 96.27 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009219/0.000922, allocations: 180.7 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.2 MB / 241.8 MB, free: 372 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2333/0.2333, allocations: 44.23 MB / 337.1 MB, free: 2.902 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004068/0.0004068, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1492, allocations: 61.91 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.002439/0.1517, allocations: 1.536 MB / 473.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000993/0.1527, allocations: 0.5225 MB / 473.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.983e-05/0.1529, allocations: 4 kB / 473.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001701/0.1531, allocations: 23.8 kB / 473.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.1532, allocations: 31.92 kB / 473.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001614/0.1534, allocations: 27.97 kB / 473.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.1536, allocations: 99.75 kB / 473.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.1538, allocations: 53.77 kB / 473.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.154, allocations: 47.86 kB / 473.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.1541, allocations: 59.75 kB / 473.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.1541, allocations: 8 kB / 473.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.04e-05/0.1541, allocations: 4 kB / 473.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.058e-05/0.1542, allocations: 23.86 kB / 474 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.48e-05/0.1542, allocations: 49.64 kB / 474 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.1544, allocations: 119.9 kB / 474.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1544, allocations: 0 / 474.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1544, allocations: 0 / 474.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1544, allocations: 4 kB / 474.1 MB, free: 11.03 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.0006863/0.1551, allocations: 423.2 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.1552, allocations: 8.031 kB / 474.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.783e-05/0.1552, allocations: 46.55 kB / 474.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.9e-05/0.1553, allocations: 15.81 kB / 474.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.1555, allocations: 202.4 kB / 474.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.1556, allocations: 16.17 kB / 474.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.1556, allocations: 16 kB / 474.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003561/0.156, allocations: 143.8 kB / 475 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.156, allocations: 0 / 475 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.156, allocations: 4 kB / 475 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.156, allocations: 4 kB / 475 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000283/0.1563, allocations: 116.7 kB / 475.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.1573, allocations: 0.6263 MB / 475.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.1576, allocations: 74.52 kB / 475.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.1577, allocations: 4.062 kB / 475.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.1577, allocations: 38.56 kB / 475.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.1577, allocations: 0 / 475.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004227/0.1581, allocations: 129.6 kB / 476 MB, free: 8.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.1582, allocations: 51.41 kB / 476 MB, free: 8.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.1583, allocations: 148.4 kB / 476.2 MB, free: 8.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.1584, allocations: 25.7 kB / 476.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.1585, allocations: 143.3 kB / 476.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.1585, allocations: 15.75 kB / 476.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-06/0.1585, allocations: 4 kB / 476.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1587, allocations: 322.8 kB / 476.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.1588, allocations: 35.97 kB / 476.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.1589, allocations: 72.2 kB / 476.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.1591, allocations: 39.97 kB / 476.8 MB, free: 8.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1591, allocations: 0 / 476.8 MB, free: 8.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002892/0.1594, allocations: 141.4 kB / 477 MB, free: 7.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1594, allocations: 4 kB / 477 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1594, allocations: 4 kB / 477 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.1594, allocations: 0 / 477 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.1596, allocations: 32.11 kB / 477 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.1596, allocations: 0 / 477 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.1597, allocations: 28.08 kB / 477 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.1597, allocations: 7.938 kB / 477 MB, free: 7.883 MB / 350.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.0001318/0.1598, allocations: 130.3 kB / 477.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.531e-05/0.1599, allocations: 7.906 kB / 477.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.16, allocations: 12.31 kB / 477.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.16, allocations: 0 / 477.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.16, allocations: 7.984 kB / 477.2 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.16, allocations: 0 / 477.2 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.1602, allocations: 205.6 kB / 477.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1602, allocations: 0 / 477.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.222e-05/0.1603, allocations: 19.98 kB / 477.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1603, allocations: 0 / 477.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.353e-06/0.1603, allocations: 0 / 477.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1603, allocations: 0 / 477.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1603, allocations: 0 / 477.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002907/0.1606, allocations: 203.3 kB / 477.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.255e-05/0.1607, allocations: 85.02 kB / 477.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.1607, allocations: 4 kB / 477.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.1608, allocations: 15.98 kB / 477.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.1609, allocations: 0 / 477.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.1609, allocations: 4 kB / 477.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.005e-05/0.161, allocations: 117.2 kB / 477.8 MB, free: 7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.161, allocations: 0 / 477.8 MB, free: 7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002438/0.1612, allocations: 27.84 kB / 477.9 MB, free: 6.973 MB / 350.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.0005881/0.1618, allocations: 0.7279 MB / 478.6 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002721/0.1621, allocations: 79.89 kB / 478.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1621, allocations: 0 / 478.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.1622, allocations: 35.97 kB / 478.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.1625, allocations: 6.594 kB / 478.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.1642, allocations: 1.373 MB / 480.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.1646, allocations: 0.7158 MB / 480.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.108e-05/0.1647, allocations: 4.672 kB / 480.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.695e-05/0.1648, allocations: 39.42 kB / 480.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1648, allocations: 0 / 480.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01325/0.178, allocations: 1.793 MB / 482.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/0.1783, allocations: 175.1 kB / 482.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/1.919, allocations: 3.938 kB / 482.8 MB, free: 1.945 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat does not exist to compare? outputFormat=mat