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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001191/0.001192, allocations: 196.3 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009233/0.0009234, allocations: 90.25 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.327e-05/5.361e-05, allocations: 4 kB / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1091, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3265/0.4357, allocations: 79.36 MB / 481.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.436, allocations: 67.03 kB / 481.5 MB, free: 10.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006944/0.4429, allocations: 2.918 MB / 484.5 MB, free: 7.578 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4429, allocations: 4 kB / 484.5 MB, free: 7.574 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.443, allocations: 4 kB / 484.5 MB, free: 7.57 MB / 346.7 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.0003971/0.4434, allocations: 412 kB / 484.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.4434, allocations: 12.03 kB / 484.9 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.656e-05/0.4435, allocations: 47.36 kB / 484.9 MB, free: 7.074 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.4436, allocations: 32.58 kB / 485 MB, free: 7.043 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.4438, allocations: 198.3 kB / 485.1 MB, free: 6.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.4439, allocations: 11.28 kB / 485.2 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.4439, allocations: 11.88 kB / 485.2 MB, free: 6.809 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001944/0.4441, allocations: 108.5 kB / 485.3 MB, free: 6.727 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.4441, allocations: 0 / 485.3 MB, free: 6.727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.4441, allocations: 7.375 kB / 485.3 MB, free: 6.723 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.4441, allocations: 0 / 485.3 MB, free: 6.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.4443, allocations: 65.22 kB / 485.3 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007464/0.445, allocations: 0.6219 MB / 486 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.4453, allocations: 81.7 kB / 486.1 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.068e-05/0.4453, allocations: 26.98 kB / 486.1 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.4454, allocations: 0 / 486.1 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.794e-05/0.4454, allocations: 38.5 kB / 486.1 MB, free: 5.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.4454, allocations: 0 / 486.1 MB, free: 5.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002963/0.4457, allocations: 107.4 kB / 486.2 MB, free: 5.816 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.4457, allocations: 55.41 kB / 486.3 MB, free: 5.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.082e-05/0.4458, allocations: 137.2 kB / 486.4 MB, free: 5.625 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.4459, allocations: 25.7 kB / 486.4 MB, free: 5.594 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.522e-05/0.4459, allocations: 119.3 kB / 486.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.4459, allocations: 31.06 kB / 486.6 MB, free: 5.457 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.4459, allocations: 0 / 486.6 MB, free: 5.457 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.45e-05/0.446, allocations: 314.5 kB / 486.9 MB, free: 5.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.465e-05/0.446, allocations: 23.44 kB / 486.9 MB, free: 5.129 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.137e-05/0.4461, allocations: 39.12 kB / 486.9 MB, free: 5.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.521e-05/0.4461, allocations: 19.25 kB / 487 MB, free: 5.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4462, allocations: 0 / 487 MB, free: 5.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002287/0.4464, allocations: 132.8 kB / 487.1 MB, free: 4.961 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.4464, allocations: 12.06 kB / 487.1 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.4464, allocations: 0 / 487.1 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001686/0.4466, allocations: 32.03 kB / 487.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.408e-05/0.4467, allocations: 15.55 kB / 487.2 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.4477, allocations: 1.509 MB / 488.7 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.602e-05/0.4478, allocations: 11.86 kB / 488.7 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.4479, allocations: 8.109 kB / 488.7 MB, free: 3.355 MB / 346.7 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 () * 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 5.251e-05/0.4479, allocations: 104.3 kB / 488.8 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.4479, allocations: 19.81 kB / 488.8 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.279e-05/0.448, allocations: 12.19 kB / 488.8 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.448, allocations: 0 / 488.8 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.448, allocations: 0 / 488.8 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.448, allocations: 0 / 488.8 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.4482, allocations: 218.4 kB / 489 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4482, allocations: 0 / 489 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.761e-05/0.4482, allocations: 15.36 kB / 489 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001123/0.4483, allocations: 32.09 kB / 489.1 MB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.4484, allocations: 0 / 489.1 MB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008435/0.4492, allocations: 1.502 MB / 490.6 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4492, allocations: 0 / 490.6 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002088/0.4494, allocations: 207.5 kB / 490.8 MB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.767e-05/0.4495, allocations: 93.02 kB / 490.9 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.4495, allocations: 9.078 kB / 490.9 MB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.481e-05/0.4496, allocations: 4 kB / 490.9 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.756e-05/0.4496, allocations: 7.984 kB / 490.9 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.4497, allocations: 4 kB / 490.9 MB, free: 1.086 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.524e-05/0.4497, allocations: 106.4 kB / 491 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4497, allocations: 0 / 491 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003236/0.45, allocations: 43.92 kB / 491 MB, free: 0.9531 MB / 346.7 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 () * 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.0004457/0.4505, allocations: 0.7371 MB / 491.8 MB, free: 220 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002677/0.4508, allocations: 180.3 kB / 492 MB, free: 52 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.4508, allocations: 4 kB / 492 MB, free: 48 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.451, allocations: 145.4 kB / 492.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.4512, allocations: 11.02 kB / 492.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005041/0.4517, allocations: 193.2 kB / 492.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.452, allocations: 0.7245 MB / 493 MB, free: 14.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.576e-05/0.4521, allocations: 448 / 493 MB, free: 14.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.054e-05/0.4521, allocations: 31.67 kB / 493.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4521, allocations: 0 / 493.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01569/0.4678, allocations: 2.551 MB / 495.6 MB, free: 12.64 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/0.4681, allocations: 173 kB / 495.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.526/1.994, allocations: 0 / 495.8 MB, free: 12.42 MB / 362.7 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