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.0009712/0.0009715, allocations: 172.5 kB / 14.1 MB, free: 1.223 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.552/1.552, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008658/0.0008658, allocations: 90.69 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.591e-05/4.61e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08928/0.08935, allocations: 47.56 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3198/0.4092, allocations: 77.36 MB / 447.5 MB, free: 15.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001859/0.4094, allocations: 74.77 kB / 447.5 MB, free: 15.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01322/0.4227, allocations: 4.941 MB / 452.5 MB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4227, allocations: 192 / 452.5 MB, free: 11.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.691e-05/0.4228, allocations: 8 kB / 452.5 MB, free: 11.61 MB / 330.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.0009732/0.4237, allocations: 0.5657 MB / 453.1 MB, free: 11.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.4238, allocations: 12.03 kB / 453.1 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.987e-05/0.4239, allocations: 58.23 kB / 453.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.424, allocations: 43.52 kB / 453.2 MB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/0.4244, allocations: 269.6 kB / 453.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.023e-05/0.4245, allocations: 23.89 kB / 453.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.676e-05/0.4245, allocations: 29.88 kB / 453.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004514/0.425, allocations: 230 kB / 453.7 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.425, allocations: 4 kB / 453.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.425, allocations: 13.88 kB / 453.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.4251, allocations: 4 kB / 453.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003181/0.4254, allocations: 174.8 kB / 453.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.4272, allocations: 0.9949 MB / 454.9 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/0.4276, allocations: 208.6 kB / 455.1 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.4279, allocations: 104.1 kB / 455.2 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.4279, allocations: 4.188 kB / 455.2 MB, free: 9.211 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.4279, allocations: 42.12 kB / 455.2 MB, free: 9.164 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.774e-06/0.4279, allocations: 0 / 455.2 MB, free: 9.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005474/0.4285, allocations: 247 kB / 455.5 MB, free: 8.965 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.4285, allocations: 55.34 kB / 455.5 MB, free: 8.898 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.4288, allocations: 230.4 kB / 455.8 MB, free: 8.707 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.4288, allocations: 33.45 kB / 455.8 MB, free: 8.672 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.429, allocations: 182.2 kB / 456 MB, free: 8.523 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.975e-05/0.429, allocations: 78.52 kB / 456 MB, free: 8.457 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.317e-06/0.429, allocations: 4 kB / 456.1 MB, free: 8.453 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.4292, allocations: 334.2 kB / 456.4 MB, free: 8.129 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.4293, allocations: 58.97 kB / 456.4 MB, free: 8.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.4294, allocations: 86.75 kB / 456.5 MB, free: 8.023 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.4295, allocations: 64.61 kB / 456.6 MB, free: 7.984 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.4295, allocations: 3.953 kB / 456.6 MB, free: 7.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004492/0.43, allocations: 287.5 kB / 456.9 MB, free: 7.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.43, allocations: 4 kB / 456.9 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.43, allocations: 4 kB / 456.9 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002798/0.4303, allocations: 80.55 kB / 457 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.4305, allocations: 39.97 kB / 457 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.4327, allocations: 2.82 MB / 459.8 MB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.4329, allocations: 39.64 kB / 459.9 MB, free: 4.527 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.988e-05/0.4329, allocations: 8 kB / 459.9 MB, free: 4.52 MB / 330.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 (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.0001087/0.4331, allocations: 116.9 kB / 460 MB, free: 4.398 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.024e-05/0.4331, allocations: 23.72 kB / 460 MB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.51e-05/0.4332, allocations: 34.02 kB / 460 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.4332, allocations: 4 kB / 460 MB, free: 4.332 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.4332, allocations: 0 / 460 MB, free: 4.332 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4332, allocations: 4 kB / 460 MB, free: 4.328 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008783/0.4341, allocations: 0.6441 MB / 460.7 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.4341, allocations: 0 / 460.7 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.4343, allocations: 31.97 kB / 460.7 MB, free: 3.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/0.4345, allocations: 77.61 kB / 460.8 MB, free: 3.508 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.4345, allocations: 4 kB / 460.8 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002325/0.4368, allocations: 2.831 MB / 463.6 MB, free: 420 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4369, allocations: 0 / 463.6 MB, free: 420 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/0.4373, allocations: 348.8 kB / 464 MB, free: 48 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.4375, allocations: 104.8 kB / 464.1 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.4375, allocations: 3.984 kB / 464.1 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.4378, allocations: 35.98 kB / 464.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.899e-05/0.4379, allocations: 19.97 kB / 464.1 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.4379, allocations: 8 kB / 464.1 MB, free: 15.86 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001803/0.4381, allocations: 187.1 kB / 464.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4381, allocations: 0 / 464.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003875/0.4385, allocations: 87.84 kB / 464.4 MB, free: 15.59 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 (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.0007845/0.4393, allocations: 0.8903 MB / 465.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006108/0.4399, allocations: 413 kB / 465.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4399, allocations: 0 / 465.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003477/0.4403, allocations: 329 kB / 466 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.4406, allocations: 55.16 kB / 466.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008216/0.4414, allocations: 375.3 kB / 466.4 MB, free: 13.44 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.4418, allocations: 0.7716 MB / 467.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.4419, allocations: 22.08 kB / 467.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.442, allocations: 91.39 kB / 467.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of SimCode: time 7.72e-07/0.4421, allocations: 3.938 kB / 467.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.4624, allocations: 5.648 MB / 473 MB, free: 6.883 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/0.4626, allocations: 186.5 kB / 473.2 MB, free: 6.652 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/2.219, allocations: 0 / 473.2 MB, free: 6.652 MB / 346.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