Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 181.3 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007917/0.0007917, allocations: 84.92 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002676, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2509, allocations: 47.58 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09245/0.3434, allocations: 77.45 MB / 453.4 MB, free: 3.191 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.3436, allocations: 71.97 kB / 453.4 MB, free: 3.121 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01264/0.3563, allocations: 4.942 MB / 458.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3563, allocations: 0 / 458.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.964e-05/0.3564, allocations: 11.98 kB / 458.4 MB, free: 14.16 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008158/0.3572, allocations: 0.5884 MB / 459 MB, free: 13.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.3572, allocations: 12.03 kB / 459 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.545e-05/0.3573, allocations: 62.53 kB / 459.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.734e-05/0.3574, allocations: 39.62 kB / 459.1 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.3577, allocations: 274.5 kB / 459.4 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.3577, allocations: 20.52 kB / 459.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.237e-05/0.3578, allocations: 28 kB / 459.4 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004923/0.3583, allocations: 264.8 kB / 459.7 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3583, allocations: 0 / 459.7 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.3583, allocations: 12 kB / 459.7 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.3584, allocations: 4 kB / 459.7 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004482/0.3588, allocations: 230.1 kB / 459.9 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.3604, allocations: 1.008 MB / 460.9 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004453/0.3609, allocations: 227.2 kB / 461.1 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.3609, allocations: 192 / 461.1 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.3609, allocations: 38.75 kB / 461.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.112e-06/0.3609, allocations: 0 / 461.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001291/0.3622, allocations: 0.586 MB / 461.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.3623, allocations: 55.41 kB / 461.8 MB, free: 10.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.3626, allocations: 229.7 kB / 462 MB, free: 10.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.3626, allocations: 25.7 kB / 462.1 MB, free: 10.22 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.3627, allocations: 183.9 kB / 462.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.533e-05/0.3628, allocations: 75 kB / 462.3 MB, free: 9.961 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.3628, allocations: 4 kB / 462.3 MB, free: 9.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3629, allocations: 334.8 kB / 462.6 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.3631, allocations: 84.42 kB / 462.7 MB, free: 9.535 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.3634, allocations: 107.5 kB / 462.8 MB, free: 9.422 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.3636, allocations: 94.59 kB / 462.9 MB, free: 9.332 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3637, allocations: 4 kB / 462.9 MB, free: 9.328 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006127/0.3643, allocations: 346.7 kB / 463.3 MB, free: 8.977 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3643, allocations: 4 kB / 463.3 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3643, allocations: 0 / 463.3 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002815/0.3646, allocations: 73.66 kB / 463.3 MB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.3648, allocations: 43.98 kB / 463.4 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.367, allocations: 2.85 MB / 466.2 MB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.3672, allocations: 43.83 kB / 466.3 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.3672, allocations: 8 kB / 466.3 MB, free: 5.676 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000205/0.3674, allocations: 141.7 kB / 466.4 MB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.616e-05/0.3675, allocations: 27.72 kB / 466.5 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.388e-05/0.3675, allocations: 30.17 kB / 466.5 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.3676, allocations: 4 kB / 466.5 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3676, allocations: 4 kB / 466.5 MB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.3676, allocations: 0 / 466.5 MB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003657/0.3679, allocations: 345.3 kB / 466.8 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.368, allocations: 0 / 466.8 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.3681, allocations: 27.98 kB / 466.9 MB, free: 5.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000199/0.3683, allocations: 77.97 kB / 466.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.3683, allocations: 8 kB / 466.9 MB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002011/0.3704, allocations: 2.847 MB / 469.8 MB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3704, allocations: 4.125 kB / 469.8 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006267/0.371, allocations: 397.4 kB / 470.2 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.755e-05/0.3711, allocations: 104.8 kB / 470.3 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.763e-05/0.3711, allocations: 4 kB / 470.3 MB, free: 1.312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000265/0.3714, allocations: 39.97 kB / 470.3 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-05/0.3715, allocations: 19.97 kB / 470.3 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.3715, allocations: 4 kB / 470.3 MB, free: 1.25 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001677/0.3717, allocations: 190 kB / 470.5 MB, free: 1.066 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3717, allocations: 0 / 470.5 MB, free: 1.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003919/0.3721, allocations: 91.75 kB / 470.6 MB, free: 0.9766 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008973/0.373, allocations: 0.9441 MB / 471.6 MB, free: 16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007803/0.3738, allocations: 457.7 kB / 472 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3738, allocations: 0 / 472 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.3742, allocations: 369.2 kB / 472.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.3746, allocations: 52.47 kB / 472.4 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.3772, allocations: 1.856 MB / 474.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.3775, allocations: 0.7718 MB / 475.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.3777, allocations: 22.3 kB / 475.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.3778, allocations: 91.41 kB / 475.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.3778, allocations: 0 / 475.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.3978, allocations: 5.665 MB / 480.8 MB, free: 6.621 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/0.398, allocations: 204.5 kB / 481 MB, free: 6.383 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.247, allocations: 3.938 kB / 481 MB, free: 6.379 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat