Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_cpp_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.001583/0.001584, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.952/1.952, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001133/0.001133, allocations: 95.16 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003892/0.0003888, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3266, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.4507, allocations: 77.45 MB / 452.1 MB, free: 3.293 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.451, allocations: 71.91 kB / 452.2 MB, free: 3.223 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02157/0.4726, allocations: 4.943 MB / 457.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4726, allocations: 4 kB / 457.1 MB, free: 14.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.4727, allocations: 4 kB / 457.1 MB, free: 14.26 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.001354/0.474, allocations: 0.5983 MB / 457.7 MB, free: 13.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.4741, allocations: 8.031 kB / 457.7 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.4742, allocations: 62.55 kB / 457.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.375e-05/0.4743, allocations: 31.62 kB / 457.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004559/0.4748, allocations: 278.5 kB / 458.1 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.4748, allocations: 24.52 kB / 458.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.368e-05/0.4749, allocations: 31.94 kB / 458.1 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008378/0.4758, allocations: 260.8 kB / 458.4 MB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.4758, allocations: 0 / 458.4 MB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.691e-05/0.4758, allocations: 12 kB / 458.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.4759, allocations: 15.97 kB / 458.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008636/0.4767, allocations: 226.1 kB / 458.6 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00281/0.4796, allocations: 0.9963 MB / 459.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000788/0.4804, allocations: 227.2 kB / 459.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.4805, allocations: 4.188 kB / 459.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.4805, allocations: 38.75 kB / 459.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.665e-06/0.4805, allocations: 0 / 459.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.00219/0.4827, allocations: 0.5861 MB / 460.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.4828, allocations: 51.41 kB / 460.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003844/0.4832, allocations: 233.7 kB / 460.8 MB, free: 10.35 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.4832, allocations: 33.7 kB / 460.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.4834, allocations: 238.3 kB / 461 MB, free: 10.08 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.487e-05/0.4835, allocations: 71 kB / 461.1 MB, free: 10.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.925e-05/0.4836, allocations: 0 / 461.1 MB, free: 10.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4837, allocations: 322.8 kB / 461.4 MB, free: 9.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003511/0.4841, allocations: 80.42 kB / 461.5 MB, free: 9.602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003773/0.4845, allocations: 115.5 kB / 461.6 MB, free: 9.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004203/0.4849, allocations: 94.59 kB / 461.7 MB, free: 9.391 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.4849, allocations: 0 / 461.7 MB, free: 9.391 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001125/0.4861, allocations: 326.9 kB / 462 MB, free: 9.059 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.4861, allocations: 8 kB / 462 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.4861, allocations: 0 / 462 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004276/0.4866, allocations: 81.66 kB / 462.1 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003688/0.4869, allocations: 39.98 kB / 462.1 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003353/0.4903, allocations: 2.862 MB / 465 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003918/0.4908, allocations: 31.77 kB / 465 MB, free: 5.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.4908, allocations: 8 kB / 465 MB, free: 5.75 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.0002374/0.491, allocations: 141.7 kB / 465.2 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.606e-05/0.4911, allocations: 27.72 kB / 465.2 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.062e-05/0.4912, allocations: 34.23 kB / 465.2 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.4912, allocations: 0 / 465.2 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.4913, allocations: 4 kB / 465.2 MB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.4913, allocations: 0 / 465.2 MB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005391/0.4918, allocations: 337.3 kB / 465.6 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4918, allocations: 0 / 465.6 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000266/0.4921, allocations: 27.98 kB / 465.6 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003504/0.4925, allocations: 89.53 kB / 465.7 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.4925, allocations: 4 kB / 465.7 MB, free: 5.031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003243/0.4958, allocations: 2.851 MB / 468.5 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.401e-06/0.4958, allocations: 4 kB / 468.5 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.497, allocations: 392.8 kB / 468.9 MB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.4971, allocations: 104.8 kB / 469 MB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.998e-05/0.4972, allocations: 4 kB / 469 MB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004596/0.4976, allocations: 43.97 kB / 469.1 MB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.318e-05/0.4978, allocations: 19.97 kB / 469.1 MB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.4978, allocations: 4 kB / 469.1 MB, free: 1.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002752/0.4981, allocations: 182 kB / 469.3 MB, free: 1.145 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-07/0.4981, allocations: 0 / 469.3 MB, free: 1.145 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005508/0.4986, allocations: 95.75 kB / 469.4 MB, free: 1.051 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.001498/0.5002, allocations: 0.941 MB / 470.3 MB, free: 76 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.5015, allocations: 462 kB / 470.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.5015, allocations: 0 / 470.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007301/0.5023, allocations: 373.1 kB / 471.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005283/0.5028, allocations: 45.05 kB / 471.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.5069, allocations: 1.886 MB / 473.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.5074, allocations: 0.7719 MB / 473.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.5076, allocations: 87.41 kB / 473.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5076, allocations: 3.938 kB / 473.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.775/3.282, allocations: 6.658 MB / 480.6 MB, free: 5.68 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat