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.001093/0.001094, allocations: 97.94 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 194.5 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002444/0.0002445, allocations: 11.98 kB / 306.8 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1154, allocations: 51.49 MB / 358.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002732/0.1182, allocations: 1.804 MB / 360.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009693/0.1192, allocations: 0.5536 MB / 360.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.709e-05/0.1193, allocations: 7.938 kB / 360.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.1195, allocations: 19.91 kB / 360.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.257e-05/0.1196, allocations: 35.7 kB / 360.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001987/0.1198, allocations: 35.89 kB / 360.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.12, allocations: 147.3 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.1201, allocations: 45.44 kB / 361 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.1203, allocations: 55.78 kB / 361 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.1204, allocations: 59.77 kB / 361.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.1204, allocations: 4 kB / 361.1 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.598e-05/0.1205, allocations: 15.98 kB / 361.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.746e-05/0.1205, allocations: 23.86 kB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.873e-05/0.1206, allocations: 49.64 kB / 361.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.1208, allocations: 123.9 kB / 361.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1208, allocations: 0 / 361.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1208, allocations: 0 / 361.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1208, allocations: 4 kB / 361.3 MB, free: 10.78 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.0006052/0.1214, allocations: 423.1 kB / 361.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.1215, allocations: 8.031 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.025e-05/0.1215, allocations: 42.56 kB / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001948/0.1217, allocations: 31.8 kB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.122, allocations: 206.8 kB / 362 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.122, allocations: 8.234 kB / 362 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.122, allocations: 19.95 kB / 362 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.1223, allocations: 115.5 kB / 362.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.1223, allocations: 0 / 362.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.1223, allocations: 8 kB / 362.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1223, allocations: 0 / 362.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.1225, allocations: 84.66 kB / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000906/0.1234, allocations: 0.6018 MB / 362.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002903/0.1237, allocations: 90.62 kB / 362.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.029e-05/0.1238, allocations: 32.97 kB / 362.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.1239, allocations: 0 / 362.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.1239, allocations: 42.48 kB / 363 MB, free: 8.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.1239, allocations: 0 / 363 MB, free: 8.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006903/0.1246, allocations: 263.5 kB / 363.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.1247, allocations: 59.3 kB / 363.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1248, allocations: 141.8 kB / 363.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.1248, allocations: 25.7 kB / 363.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.297e-05/0.1249, allocations: 131.9 kB / 363.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.1249, allocations: 23.66 kB / 363.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.125, allocations: 0 / 363.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1251, allocations: 318.8 kB / 363.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.692e-05/0.1252, allocations: 31.98 kB / 363.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.067e-05/0.1253, allocations: 42.56 kB / 364 MB, free: 7.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.082e-05/0.1254, allocations: 24 kB / 364 MB, free: 7.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1254, allocations: 0 / 364 MB, free: 7.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002877/0.1257, allocations: 146.2 kB / 364.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1257, allocations: 4 kB / 364.2 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.1257, allocations: 0 / 364.2 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000189/0.1259, allocations: 36.84 kB / 364.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.859e-05/0.126, allocations: 11.98 kB / 364.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001484/0.1275, allocations: 1.521 MB / 365.7 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.231e-05/0.1275, allocations: 8.094 kB / 365.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.1276, allocations: 7.953 kB / 365.7 MB, free: 5.891 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.0001058/0.1277, allocations: 133.7 kB / 365.9 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.135e-05/0.1277, allocations: 7.906 kB / 365.9 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.274e-05/0.1277, allocations: 12.66 kB / 365.9 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1277, allocations: 8 kB / 365.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.92e-07/0.1277, allocations: 0 / 365.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1278, allocations: 0 / 365.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002264/0.128, allocations: 213.6 kB / 366.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.128, allocations: 0 / 366.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.788e-05/0.128, allocations: 7.984 kB / 366.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001156/0.1282, allocations: 28.84 kB / 366.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.1282, allocations: 8 kB / 366.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.1294, allocations: 1.502 MB / 367.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1294, allocations: 3.953 kB / 367.7 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000316/0.1297, allocations: 216.3 kB / 367.9 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.079e-05/0.1298, allocations: 96.95 kB / 368 MB, free: 3.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.1298, allocations: 0 / 368 MB, free: 3.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.1299, allocations: 12 kB / 368 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.13, allocations: 3.984 kB / 368 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.13, allocations: 4 kB / 368 MB, free: 3.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.913e-05/0.1301, allocations: 109.8 kB / 368.1 MB, free: 3.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1301, allocations: 0 / 368.1 MB, free: 3.309 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.1305, allocations: 43.84 kB / 368.1 MB, free: 3.266 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.0006534/0.1311, allocations: 0.7483 MB / 368.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003907/0.1315, allocations: 186.7 kB / 369.1 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1315, allocations: 4 kB / 369.1 MB, free: 2.285 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.1317, allocations: 166.5 kB / 369.2 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.132, allocations: 8 kB / 369.2 MB, free: 2.102 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.1333, allocations: 0.7986 MB / 370 MB, free: 1.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.1336, allocations: 0.7079 MB / 370.7 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.903e-05/0.1336, allocations: 8.422 kB / 370.8 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.246e-05/0.1337, allocations: 31.44 kB / 370.8 MB, free: 488 kB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1337, allocations: 0 / 370.8 MB, free: 488 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1914/0.3251, allocations: 2.596 MB / 373.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/0.3253, allocations: 208.3 kB / 373.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/2.328, allocations: 0.5938 kB / 373.6 MB, free: 18.18 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