Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",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.0008064/0.0008063, allocations: 101.1 kB / 17.01 MB, free: 6.391 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.0007525/0.0007526, allocations: 182.2 kB / 17.89 MB, free: 5.922 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.347/1.347, allocations: 223.3 MB / 241.9 MB, free: 14.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2135/0.2135, allocations: 44.22 MB / 337.2 MB, free: 2.582 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003126/0.0003126, allocations: 8 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1255, allocations: 61.93 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002684/0.1283, allocations: 2.225 MB / 473.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.1293, allocations: 0.7095 MB / 474.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.1294, allocations: 4 kB / 474.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.1296, allocations: 59.55 kB / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002188/0.1298, allocations: 79.44 kB / 474.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.1301, allocations: 83.91 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003649/0.1304, allocations: 366.6 kB / 475.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.1307, allocations: 119.2 kB / 475.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.1309, allocations: 123.5 kB / 475.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.131, allocations: 143.3 kB / 475.5 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.579e-05/0.1311, allocations: 20 kB / 475.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.931e-05/0.1311, allocations: 20 kB / 475.6 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.752e-05/0.1312, allocations: 63.73 kB / 475.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.575e-05/0.1313, allocations: 85.52 kB / 475.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.1315, allocations: 299.1 kB / 476 MB, free: 9.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1316, allocations: 0 / 476 MB, free: 9.219 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1316, allocations: 4 kB / 476 MB, free: 9.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.1316, allocations: 0 / 476 MB, free: 9.215 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0009205/0.1325, allocations: 0.6199 MB / 476.6 MB, free: 8.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1326, allocations: 8.031 kB / 476.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.932e-05/0.1326, allocations: 70.53 kB / 476.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.504e-05/0.1327, allocations: 43.53 kB / 476.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.133, allocations: 263.5 kB / 477 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.1331, allocations: 28.94 kB / 477.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.571e-05/0.1331, allocations: 43.94 kB / 477.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008693/0.134, allocations: 358.7 kB / 477.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.134, allocations: 4 kB / 477.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.789e-05/0.1341, allocations: 12 kB / 477.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.1341, allocations: 8 kB / 477.5 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005836/0.1347, allocations: 295.1 kB / 477.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.1367, allocations: 1.363 MB / 479.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004619/0.1371, allocations: 206.6 kB / 479.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.1374, allocations: 95.45 kB / 479.4 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.1374, allocations: 176 / 479.4 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.1374, allocations: 46.52 kB / 479.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.1374, allocations: 0 / 479.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007523/0.1382, allocations: 273.2 kB / 479.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.865e-05/0.1383, allocations: 140.5 kB / 479.9 MB, free: 5.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003256/0.1386, allocations: 328.4 kB / 480.2 MB, free: 4.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.1386, allocations: 25.7 kB / 480.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.1388, allocations: 231.7 kB / 480.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.1388, allocations: 59.19 kB / 480.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.256e-05/0.1389, allocations: 4 kB / 480.5 MB, free: 4.414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.139, allocations: 338.8 kB / 480.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002378/0.1392, allocations: 96.44 kB / 480.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.1395, allocations: 184.1 kB / 481.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.1398, allocations: 104.4 kB / 481.2 MB, free: 3.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.1398, allocations: 3.984 kB / 481.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006426/0.1404, allocations: 329.2 kB / 481.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1405, allocations: 7.953 kB / 481.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1405, allocations: 4 kB / 481.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.1405, allocations: 4 kB / 481.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003922/0.1409, allocations: 108 kB / 481.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1409, allocations: 11.94 kB / 481.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.1412, allocations: 51.56 kB / 481.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.1412, allocations: 12 kB / 481.7 MB, free: 3.129 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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.0001395/0.1414, allocations: 154.2 kB / 481.9 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.47e-05/0.1415, allocations: 31.91 kB / 481.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.568e-05/0.1415, allocations: 34.36 kB / 481.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.1415, allocations: 3.984 kB / 481.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1416, allocations: 7.938 kB / 482 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.1416, allocations: 3.984 kB / 482 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007249/0.1423, allocations: 0.5837 MB / 482.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1423, allocations: 4 kB / 482.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.1426, allocations: 64.11 kB / 482.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.1426, allocations: 7.984 kB / 482.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.1426, allocations: 8 kB / 482.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1426, allocations: 3.938 kB / 482.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1426, allocations: 4 kB / 482.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005331/0.1432, allocations: 418.5 kB / 483 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.404e-05/0.1433, allocations: 108.7 kB / 483.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.69e-05/0.1433, allocations: 8 kB / 483.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.1435, allocations: 19.97 kB / 483.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.88e-05/0.1436, allocations: 19.98 kB / 483.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.1436, allocations: 4 kB / 483.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002236/0.1438, allocations: 223.1 kB / 483.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1438, allocations: 4 kB / 483.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003856/0.1442, allocations: 67.84 kB / 483.5 MB, free: 1.238 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * 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.0008326/0.1451, allocations: 0.9498 MB / 484.4 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005004/0.1456, allocations: 216.1 kB / 484.6 MB, free: 32 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1456, allocations: 4.125 kB / 484.6 MB, free: 28 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.1458, allocations: 91.89 kB / 484.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004296/0.1463, allocations: 25.38 kB / 484.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003272/0.1496, allocations: 1.743 MB / 486.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.15, allocations: 0.7755 MB / 487.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.1501, allocations: 18.14 kB / 487.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.1503, allocations: 103.4 kB / 487.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1503, allocations: 0 / 487.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.1705, allocations: 4.331 MB / 491.7 MB, free: 8.934 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002645/0.1708, allocations: 187 kB / 491.9 MB, free: 8.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.138, allocations: 0 / 491.9 MB, free: 8.688 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat does not exist to compare? outputFormat=mat