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.0009943/0.0009942, allocations: 99.38 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.00088/0.0008801, allocations: 176.6 kB / 17.87 MB, free: 5.621 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.314/1.314, allocations: 223.2 MB / 241.8 MB, free: 400 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.2021/0.2021, allocations: 44.22 MB / 337.1 MB, free: 2.902 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004984/0.0004985, allocations: 9.125 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1702, allocations: 61.91 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002958/0.1732, allocations: 2.136 MB / 473.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.1745, allocations: 0.7058 MB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.1746, allocations: 11.94 kB / 474.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.1748, allocations: 47.62 kB / 474.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.1751, allocations: 95.78 kB / 474.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.1753, allocations: 83.8 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.1756, allocations: 267.3 kB / 474.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.1759, allocations: 115.2 kB / 475 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.1761, allocations: 123.6 kB / 475.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.1762, allocations: 151.2 kB / 475.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.262e-05/0.1763, allocations: 16 kB / 475.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.173e-05/0.1763, allocations: 24 kB / 475.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.594e-05/0.1764, allocations: 55.77 kB / 475.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.268e-05/0.1765, allocations: 89.52 kB / 475.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002708/0.1768, allocations: 299.1 kB / 475.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1768, allocations: 4 kB / 475.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1768, allocations: 0 / 475.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1768, allocations: 0 / 475.7 MB, free: 9.438 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.000976/0.1778, allocations: 0.6198 MB / 476.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.1778, allocations: 8.031 kB / 476.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.884e-05/0.1779, allocations: 78.53 kB / 476.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.46e-05/0.178, allocations: 39.53 kB / 476.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.1783, allocations: 263.5 kB / 476.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.1784, allocations: 24.94 kB / 476.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.914e-05/0.1784, allocations: 39.95 kB / 476.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000686/0.1791, allocations: 362.7 kB / 477.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1791, allocations: 0 / 477.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.701e-05/0.1792, allocations: 16 kB / 477.2 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.1792, allocations: 8 kB / 477.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006155/0.1798, allocations: 280.9 kB / 477.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.1821, allocations: 1.367 MB / 478.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005681/0.1826, allocations: 210.6 kB / 479 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.1827, allocations: 8.062 kB / 479 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.1827, allocations: 42.69 kB / 479.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.1827, allocations: 0 / 479.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008133/0.1836, allocations: 285.1 kB / 479.4 MB, free: 5.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.094e-05/0.1837, allocations: 132.5 kB / 479.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.184, allocations: 320.4 kB / 479.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.184, allocations: 33.7 kB / 479.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.1842, allocations: 235.7 kB / 480.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.15e-05/0.1843, allocations: 55.2 kB / 480.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.283e-05/0.1843, allocations: 8.031 kB / 480.1 MB, free: 4.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1845, allocations: 338.8 kB / 480.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.1847, allocations: 88.5 kB / 480.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002852/0.185, allocations: 180.1 kB / 480.7 MB, free: 4.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.1853, allocations: 111.9 kB / 480.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.1853, allocations: 0 / 480.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006773/0.186, allocations: 321 kB / 481.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.186, allocations: 8 kB / 481.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.186, allocations: 11.89 kB / 481.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.1861, allocations: 7.984 kB / 481.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004285/0.1865, allocations: 104.1 kB / 481.3 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.315e-05/0.1865, allocations: 4 kB / 481.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/0.1868, allocations: 59.56 kB / 481.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.1868, allocations: 8 kB / 481.3 MB, free: 3.461 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.0001527/0.187, allocations: 150.2 kB / 481.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.004e-05/0.1871, allocations: 31.56 kB / 481.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.576e-05/0.1872, allocations: 34.41 kB / 481.5 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1872, allocations: 7.953 kB / 481.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.1872, allocations: 3.984 kB / 481.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1872, allocations: 7.938 kB / 481.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.1883, allocations: 0.5837 MB / 482.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1883, allocations: 0 / 482.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002896/0.1886, allocations: 76.09 kB / 482.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.1887, allocations: 4 kB / 482.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.1887, allocations: 0 / 482.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.1887, allocations: 4.562 kB / 482.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.1887, allocations: 7.938 kB / 482.2 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006735/0.1894, allocations: 492.8 kB / 482.7 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.22e-05/0.1895, allocations: 108.7 kB / 482.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.952e-05/0.1895, allocations: 8 kB / 482.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002198/0.1898, allocations: 19.97 kB / 482.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.519e-05/0.1898, allocations: 19.92 kB / 482.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.1899, allocations: 8 kB / 482.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.1901, allocations: 223.1 kB / 483.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1901, allocations: 0 / 483.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003975/0.1905, allocations: 71.84 kB / 483.2 MB, free: 1.457 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.001168/0.1917, allocations: 1.434 MB / 484.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005516/0.1922, allocations: 212.1 kB / 484.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1923, allocations: 0 / 484.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.1925, allocations: 96.52 kB / 484.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.1928, allocations: 21.38 kB / 484.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.1961, allocations: 3.543 MB / 488.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.1965, allocations: 0.7833 MB / 489.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.1966, allocations: 21.95 kB / 489.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.1968, allocations: 103.4 kB / 489.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1968, allocations: 0 / 489.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01708/0.2139, allocations: 4.316 MB / 493.7 MB, free: 6.84 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002928/0.2142, allocations: 171.2 kB / 493.9 MB, free: 6.602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.068, allocations: 0 / 493.9 MB, free: 6.602 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