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.001555/0.00156, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001143, allocations: 93.62 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.493e-05/2.508e-05, allocations: 4 kB / 314.9 MB, free: 9.074 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3684, allocations: 47.57 MB / 362.4 MB, free: 45.68 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.4928, allocations: 76.71 MB / 439.1 MB, free: 9.523 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.4931, allocations: 69 kB / 439.2 MB, free: 9.457 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02188/0.515, allocations: 4.889 MB / 444.1 MB, free: 4.594 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.515, allocations: 0 / 444.1 MB, free: 4.594 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.138e-05/0.5151, allocations: 11.98 kB / 444.1 MB, free: 4.582 MB / 331.1 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.001216/0.5163, allocations: 0.5558 MB / 444.7 MB, free: 3.984 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.5164, allocations: 16.03 kB / 444.7 MB, free: 3.969 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.5165, allocations: 39.53 kB / 444.7 MB, free: 3.93 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.5169, allocations: 269.5 kB / 445 MB, free: 3.629 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.517, allocations: 8 kB / 445 MB, free: 3.621 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.506e-05/0.517, allocations: 19.95 kB / 445 MB, free: 3.602 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005214/0.5176, allocations: 157.1 kB / 445.2 MB, free: 3.445 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005604/0.5181, allocations: 202.7 kB / 445.4 MB, free: 3.242 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.5182, allocations: 0 / 445.4 MB, free: 3.242 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.589e-05/0.5182, allocations: 0 / 445.4 MB, free: 3.242 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.5182, allocations: 8 kB / 445.4 MB, free: 3.234 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002684/0.5209, allocations: 0.9207 MB / 446.3 MB, free: 2.254 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005873/0.5216, allocations: 195 kB / 446.5 MB, free: 2.055 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000293/0.5219, allocations: 102.3 kB / 446.6 MB, free: 1.953 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.5219, allocations: 4.125 kB / 446.6 MB, free: 1.949 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.522, allocations: 38.75 kB / 446.6 MB, free: 1.902 MB / 331.1 MB Notification: Performance of pre-optimization done (n=21): time 2.375e-06/0.522, allocations: 0 / 446.6 MB, free: 1.902 MB / 331.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007549/0.5227, allocations: 225.8 kB / 446.8 MB, free: 1.672 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.5228, allocations: 59.41 kB / 446.9 MB, free: 1.602 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003712/0.5232, allocations: 208.4 kB / 447.1 MB, free: 1.395 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.818e-05/0.5232, allocations: 25.7 kB / 447.1 MB, free: 1.363 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.5234, allocations: 242.4 kB / 447.4 MB, free: 1.125 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.767e-05/0.5235, allocations: 70.91 kB / 447.4 MB, free: 1.055 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.44e-05/0.5235, allocations: 0 / 447.4 MB, free: 1.055 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.5237, allocations: 322.8 kB / 447.7 MB, free: 0.7305 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.5238, allocations: 54.44 kB / 447.8 MB, free: 0.6758 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.524, allocations: 84.2 kB / 447.9 MB, free: 0.5859 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.5243, allocations: 62.77 kB / 447.9 MB, free: 0.5273 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.5243, allocations: 0 / 447.9 MB, free: 0.5273 MB / 331.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007276/0.525, allocations: 244.5 kB / 448.2 MB, free: 284 kB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.5251, allocations: 12.02 kB / 448.2 MB, free: 272 kB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.016e-06/0.5251, allocations: 1.797 kB / 448.2 MB, free: 272 kB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004255/0.5255, allocations: 73.67 kB / 448.3 MB, free: 192 kB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003947/0.5259, allocations: 39.92 kB / 448.3 MB, free: 152 kB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003299/0.5292, allocations: 2.71 MB / 451 MB, free: 13.21 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003692/0.5297, allocations: 27.86 kB / 451 MB, free: 13.18 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.5297, allocations: 8.062 kB / 451.1 MB, free: 13.18 MB / 347.1 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.0001619/0.5299, allocations: 108.9 kB / 451.2 MB, free: 13.06 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008485/0.5307, allocations: 215 kB / 451.4 MB, free: 12.84 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.789e-05/0.5308, allocations: 27.67 kB / 451.4 MB, free: 12.81 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.965e-05/0.531, allocations: 33.94 kB / 451.4 MB, free: 12.78 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.531, allocations: 4 kB / 451.4 MB, free: 12.78 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.531, allocations: 0 / 451.4 MB, free: 12.78 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.531, allocations: 0 / 451.4 MB, free: 12.78 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.5323, allocations: 0.5883 MB / 452 MB, free: 12.14 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.5323, allocations: 4 kB / 452 MB, free: 12.14 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.5326, allocations: 33 kB / 452.1 MB, free: 12.11 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000333/0.5329, allocations: 77.86 kB / 452.1 MB, free: 12.02 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.533, allocations: 0 / 452.1 MB, free: 12.02 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002906/0.5359, allocations: 2.697 MB / 454.8 MB, free: 9.094 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.538e-06/0.5359, allocations: 7.875 kB / 454.8 MB, free: 9.086 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007043/0.5367, allocations: 326.9 kB / 455.2 MB, free: 8.746 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.5368, allocations: 104.8 kB / 455.3 MB, free: 8.625 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.94e-05/0.5368, allocations: 0 / 455.3 MB, free: 8.625 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004423/0.5373, allocations: 35.97 kB / 455.3 MB, free: 8.59 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.701e-05/0.5374, allocations: 19.97 kB / 455.3 MB, free: 8.57 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.5374, allocations: 4 kB / 455.3 MB, free: 8.566 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.000223/0.5377, allocations: 165.4 kB / 455.5 MB, free: 8.402 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5377, allocations: 0 / 455.5 MB, free: 8.402 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005511/0.5382, allocations: 87.69 kB / 455.6 MB, free: 8.316 MB / 347.1 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.001025/0.5393, allocations: 0.862 MB / 456.4 MB, free: 7.422 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0008299/0.5401, allocations: 391.2 kB / 456.8 MB, free: 7.02 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.5401, allocations: 0 / 456.8 MB, free: 7.02 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004952/0.5406, allocations: 308.3 kB / 457.1 MB, free: 6.699 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004344/0.5411, allocations: 35.19 kB / 457.1 MB, free: 6.668 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.5423, allocations: 377.6 kB / 457.5 MB, free: 6.258 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.5427, allocations: 0.7677 MB / 458.3 MB, free: 5.461 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.5429, allocations: 87.41 kB / 458.4 MB, free: 5.375 MB / 347.1 MB Notification: Performance of SimCode: time 1.072e-06/0.543, allocations: 0 / 458.4 MB, free: 5.375 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.885/3.428, allocations: 6.455 MB / 464.8 MB, free: 14.95 MB / 363.1 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