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.001543/0.001543, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 96.95 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.259e-05, allocations: 4 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1157, allocations: 51.47 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3447/0.4604, allocations: 78.69 MB / 474 MB, free: 12.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001754/0.4606, allocations: 66.98 kB / 474 MB, free: 12.85 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00697/0.4676, allocations: 2.897 MB / 476.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.4676, allocations: 1.969 kB / 476.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.4676, allocations: 4 kB / 476.9 MB, free: 11.14 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.0003776/0.468, allocations: 417.1 kB / 477.3 MB, free: 10.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.4681, allocations: 12.03 kB / 477.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.4682, allocations: 27.19 kB / 477.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.4684, allocations: 203.4 kB / 477.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.4685, allocations: 0 / 477.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.4685, allocations: 11.61 kB / 477.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001297/0.4686, allocations: 60.91 kB / 477.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001559/0.4688, allocations: 94.27 kB / 477.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.4688, allocations: 0 / 477.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.4688, allocations: 4 kB / 477.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.4688, allocations: 4 kB / 477.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007179/0.4695, allocations: 0.5725 MB / 478.3 MB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.4698, allocations: 71.05 kB / 478.4 MB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.765e-05/0.4699, allocations: 26.61 kB / 478.4 MB, free: 9.738 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.4699, allocations: 7.172 kB / 478.4 MB, free: 9.734 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.4699, allocations: 40.06 kB / 478.4 MB, free: 9.688 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.4699, allocations: 0 / 478.4 MB, free: 9.688 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002954/0.4702, allocations: 95.98 kB / 478.5 MB, free: 9.609 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.208e-05/0.4702, allocations: 55.41 kB / 478.6 MB, free: 9.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.157e-05/0.4703, allocations: 125.4 kB / 478.7 MB, free: 9.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.4704, allocations: 29.7 kB / 478.7 MB, free: 9.395 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.34e-05/0.4704, allocations: 120.8 kB / 478.9 MB, free: 9.289 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.4704, allocations: 21.2 kB / 478.9 MB, free: 9.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.4705, allocations: 7.172 kB / 478.9 MB, free: 9.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.71e-05/0.4705, allocations: 320.7 kB / 479.2 MB, free: 8.949 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.986e-05/0.4706, allocations: 19 kB / 479.2 MB, free: 8.938 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.126e-05/0.4706, allocations: 40.84 kB / 479.3 MB, free: 8.902 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.158e-05/0.4707, allocations: 17.47 kB / 479.3 MB, free: 8.895 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4707, allocations: 0 / 479.3 MB, free: 8.895 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002012/0.4709, allocations: 117.1 kB / 479.4 MB, free: 8.797 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.4709, allocations: 8 kB / 479.4 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.4709, allocations: 0 / 479.4 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001779/0.4711, allocations: 33.94 kB / 479.4 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.6e-05/0.4712, allocations: 14.8 kB / 479.5 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000944/0.4721, allocations: 1.445 MB / 480.9 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.711e-05/0.4722, allocations: 9.203 kB / 480.9 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.4722, allocations: 11.81 kB / 480.9 MB, free: 7.312 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.747e-05/0.4723, allocations: 108.9 kB / 481 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001935/0.4725, allocations: 101.2 kB / 481.1 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/0.4725, allocations: 11.86 kB / 481.1 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.101e-05/0.4725, allocations: 14.08 kB / 481.1 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.4725, allocations: 0 / 481.1 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.92e-07/0.4726, allocations: 0 / 481.1 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.4726, allocations: 5.641 kB / 481.2 MB, free: 7.098 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.4727, allocations: 184.7 kB / 481.3 MB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4727, allocations: 7 kB / 481.3 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.451e-05/0.4728, allocations: 1.641 kB / 481.3 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001049/0.4729, allocations: 37.58 kB / 481.4 MB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.4729, allocations: 0 / 481.4 MB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008104/0.4737, allocations: 1.437 MB / 482.8 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4737, allocations: 3.188 kB / 482.8 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001945/0.4739, allocations: 208.2 kB / 483 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.947e-05/0.474, allocations: 96.12 kB / 483.1 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.474, allocations: 0 / 483.1 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.669e-05/0.4741, allocations: 5.594 kB / 483.1 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.4741, allocations: 11.48 kB / 483.1 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.4742, allocations: 0 / 483.1 MB, free: 5.148 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.326e-05/0.4742, allocations: 111.8 kB / 483.2 MB, free: 5.055 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4742, allocations: 0 / 483.2 MB, free: 5.055 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003407/0.4746, allocations: 43.86 kB / 483.3 MB, free: 5.012 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.0004003/0.475, allocations: 0.7213 MB / 484 MB, free: 4.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002835/0.4753, allocations: 165.1 kB / 484.2 MB, free: 4.152 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4753, allocations: 0 / 484.2 MB, free: 4.152 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.4754, allocations: 144 kB / 484.3 MB, free: 4.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002001/0.4756, allocations: 16.64 kB / 484.3 MB, free: 4.008 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004444/0.4761, allocations: 190.5 kB / 484.5 MB, free: 3.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.4763, allocations: 0.7093 MB / 485.2 MB, free: 19.1 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.2e-05/0.4764, allocations: 6.219 kB / 485.2 MB, free: 19.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.18e-05/0.4764, allocations: 25.05 kB / 485.3 MB, free: 19.09 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4765, allocations: 0 / 485.3 MB, free: 19.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.4971, allocations: 2.112 MB / 487.4 MB, free: 17.26 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/0.4974, allocations: 140.6 kB / 487.5 MB, free: 17.06 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.536/2.034, allocations: 0 / 487.5 MB, free: 17.06 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