Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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) 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(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001133/0.001132, allocations: 94.59 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.001101, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.571/1.571, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003956, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1719, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004283/0.1763, allocations: 1.75 MB / 359.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.1779, allocations: 0.5615 MB / 360.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001975/0.1782, allocations: 4 kB / 360.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.457e-05/0.1783, allocations: 11.91 kB / 360.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002477/0.1786, allocations: 47.84 kB / 360.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003378/0.1789, allocations: 31.95 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004474/0.1794, allocations: 111.8 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.1797, allocations: 45.44 kB / 360.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/0.18, allocations: 55.78 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.1802, allocations: 51.77 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.319e-05/0.1803, allocations: 8 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.1805, allocations: 19.94 kB / 360.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.286e-05/0.1805, allocations: 27.89 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.686e-05/0.1806, allocations: 45.64 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002708/0.1809, allocations: 123.9 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1809, allocations: 0 / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.181, allocations: 3.938 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.181, allocations: 0 / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008496/0.1818, allocations: 423.1 kB / 361.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.1819, allocations: 8.031 kB / 361.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.965e-05/0.182, allocations: 46.55 kB / 361.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002997/0.1823, allocations: 31.8 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.1827, allocations: 194.9 kB / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.1827, allocations: 12.17 kB / 361.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.1828, allocations: 15.95 kB / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.1832, allocations: 119.5 kB / 361.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1832, allocations: 0 / 361.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.741e-05/0.1833, allocations: 4 kB / 361.9 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.1833, allocations: 8 kB / 361.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003125/0.1836, allocations: 76.67 kB / 362 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.185, allocations: 0.6134 MB / 362.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004882/0.1855, allocations: 82.62 kB / 362.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.1855, allocations: 4 kB / 362.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.1856, allocations: 34.56 kB / 362.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.926e-06/0.1856, allocations: 0 / 362.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.001148/0.1868, allocations: 259.5 kB / 363 MB, free: 8.723 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.1868, allocations: 55.39 kB / 363 MB, free: 8.656 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.187, allocations: 148.2 kB / 363.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.1871, allocations: 25.7 kB / 363.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.1872, allocations: 127.9 kB / 363.3 MB, free: 8.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.274e-05/0.1873, allocations: 27.64 kB / 363.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-06/0.1873, allocations: 3.938 kB / 363.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1874, allocations: 322.8 kB / 363.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.1876, allocations: 23.94 kB / 363.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.1877, allocations: 46.55 kB / 363.7 MB, free: 7.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.1878, allocations: 28 kB / 363.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1879, allocations: 4 kB / 363.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004861/0.1883, allocations: 146.2 kB / 363.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.1884, allocations: 4 kB / 363.9 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.1884, allocations: 0 / 363.9 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/0.1887, allocations: 40.91 kB / 364 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.1888, allocations: 11.98 kB / 364 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.1912, allocations: 1.523 MB / 365.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.1914, allocations: 12.09 kB / 365.5 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.1914, allocations: 192 / 365.5 MB, free: 6.004 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001771/0.1916, allocations: 129.8 kB / 365.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.096e-05/0.1917, allocations: 19.89 kB / 365.7 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.251e-05/0.1917, allocations: 12.72 kB / 365.7 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1917, allocations: 0 / 365.7 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.1917, allocations: 0 / 365.7 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.1918, allocations: 0 / 365.7 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003794/0.1921, allocations: 213.5 kB / 365.9 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.1922, allocations: 4 kB / 365.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.928e-05/0.1922, allocations: 3.984 kB / 365.9 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002108/0.1925, allocations: 36.84 kB / 365.9 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.1925, allocations: 4 kB / 365.9 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001897/0.1944, allocations: 1.514 MB / 367.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.1944, allocations: 3.953 kB / 367.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004703/0.1949, allocations: 216.2 kB / 367.7 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.571e-05/0.195, allocations: 84.97 kB / 367.7 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/0.1951, allocations: 8.062 kB / 367.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.1952, allocations: 8 kB / 367.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.368e-05/0.1953, allocations: 7.984 kB / 367.8 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.1953, allocations: 0 / 367.8 MB, free: 3.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001414/0.1955, allocations: 113.8 kB / 367.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1955, allocations: 0 / 367.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006597/0.1962, allocations: 43.84 kB / 367.9 MB, free: 3.367 MB / 302.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 (2): * Single equations (assignments): 1 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009759/0.1971, allocations: 0.7554 MB / 368.7 MB, free: 2.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006491/0.1978, allocations: 194.6 kB / 368.9 MB, free: 2.379 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.1978, allocations: 0 / 368.9 MB, free: 2.379 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.1982, allocations: 162.8 kB / 369 MB, free: 2.207 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.1985, allocations: 8 kB / 369 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.2007, allocations: 1.105 MB / 370.1 MB, free: 1.039 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004316/0.2011, allocations: 0.7118 MB / 370.8 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.799e-05/0.2012, allocations: 12.61 kB / 370.9 MB, free: 296 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.882e-05/0.2013, allocations: 31.42 kB / 370.9 MB, free: 264 kB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2013, allocations: 0 / 370.9 MB, free: 264 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2498/0.4512, allocations: 2.566 MB / 373.5 MB, free: 18.37 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.4514, allocations: 203.6 kB / 373.7 MB, free: 18.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.768/2.22, allocations: 3.125 kB / 373.7 MB, free: 18.13 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat