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.001304/0.001304, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.3 MB / 214.4 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008126/0.0008126, allocations: 94.22 kB / 262.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.181e-05/2.182e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.09354, allocations: 47.59 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3294/0.423, allocations: 76.94 MB / 440.1 MB, free: 2.449 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.4233, allocations: 64.97 kB / 440.2 MB, free: 2.418 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01342/0.4367, allocations: 4.894 MB / 445.1 MB, free: 14.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4368, allocations: 4.75 kB / 445.1 MB, free: 14.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.854e-05/0.4368, allocations: 4 kB / 445.1 MB, free: 14.27 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.0008764/0.4377, allocations: 0.566 MB / 445.6 MB, free: 13.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.4377, allocations: 8.031 kB / 445.7 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.997e-05/0.4378, allocations: 39.53 kB / 445.7 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/0.4382, allocations: 270.1 kB / 446 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.4382, allocations: 8 kB / 446 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.4382, allocations: 19.95 kB / 446 MB, free: 13.33 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002985/0.4385, allocations: 165.4 kB / 446.1 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003468/0.4389, allocations: 190.1 kB / 446.3 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.4389, allocations: 0 / 446.3 MB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.527e-05/0.4389, allocations: 3.938 kB / 446.3 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.439, allocations: 12 kB / 446.3 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.4405, allocations: 0.9256 MB / 447.3 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.4409, allocations: 190 kB / 447.5 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.4411, allocations: 100.5 kB / 447.6 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.4411, allocations: 8.109 kB / 447.6 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.4412, allocations: 37.94 kB / 447.6 MB, free: 12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.4412, allocations: 0 / 447.6 MB, free: 12 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004932/0.4417, allocations: 220.1 kB / 447.8 MB, free: 11.81 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.4417, allocations: 59.41 kB / 447.9 MB, free: 11.74 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.4419, allocations: 207.5 kB / 448.1 MB, free: 11.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.442, allocations: 25.7 kB / 448.1 MB, free: 11.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.4421, allocations: 189 kB / 448.3 MB, free: 11.39 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.63e-05/0.4421, allocations: 69.92 kB / 448.4 MB, free: 11.33 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/0.4422, allocations: 0 / 448.4 MB, free: 11.33 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4423, allocations: 329.8 kB / 448.7 MB, free: 11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.304e-05/0.4424, allocations: 56.78 kB / 448.7 MB, free: 10.97 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.4426, allocations: 84.64 kB / 448.8 MB, free: 10.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.4427, allocations: 56.48 kB / 448.9 MB, free: 10.87 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.4427, allocations: 7.984 kB / 448.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004073/0.4431, allocations: 255.9 kB / 449.1 MB, free: 10.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.4431, allocations: 11.95 kB / 449.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4431, allocations: 0 / 449.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002776/0.4434, allocations: 68.73 kB / 449.2 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.4436, allocations: 47.53 kB / 449.3 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00224/0.4459, allocations: 2.709 MB / 452 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.4461, allocations: 23.86 kB / 452 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.4461, allocations: 11.25 kB / 452 MB, free: 7.754 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.0001316/0.4463, allocations: 108.9 kB / 452.1 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003904/0.4467, allocations: 211.7 kB / 452.3 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.713e-05/0.4467, allocations: 31.67 kB / 452.3 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.388e-05/0.4468, allocations: 31.33 kB / 452.4 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.4468, allocations: 0 / 452.4 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4468, allocations: 4 kB / 452.4 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.4468, allocations: 3.984 kB / 452.4 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007734/0.4476, allocations: 0.5784 MB / 453 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.4476, allocations: 0 / 453 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.4478, allocations: 39.05 kB / 453 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001858/0.448, allocations: 71.73 kB / 453.1 MB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.448, allocations: 0 / 453.1 MB, free: 6.785 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001864/0.4499, allocations: 2.707 MB / 455.8 MB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4499, allocations: 7.922 kB / 455.8 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003919/0.4503, allocations: 324.6 kB / 456.1 MB, free: 3.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.816e-05/0.4504, allocations: 104.7 kB / 456.2 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.4504, allocations: 4 kB / 456.2 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002632/0.4507, allocations: 35.97 kB / 456.2 MB, free: 3.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.669e-05/0.4507, allocations: 19.41 kB / 456.3 MB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.4508, allocations: 7.75 kB / 456.3 MB, free: 3.551 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001292/0.4509, allocations: 157.2 kB / 456.4 MB, free: 3.422 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4509, allocations: 0 / 456.4 MB, free: 3.422 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003787/0.4513, allocations: 91.69 kB / 456.5 MB, free: 3.332 MB / 330.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.0006949/0.452, allocations: 0.8594 MB / 457.4 MB, free: 2.488 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005549/0.4525, allocations: 385 kB / 457.7 MB, free: 2.148 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4526, allocations: 3.75 kB / 457.7 MB, free: 2.148 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003029/0.4529, allocations: 314.5 kB / 458.1 MB, free: 1.852 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.4532, allocations: 30.86 kB / 458.1 MB, free: 1.832 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007778/0.454, allocations: 342.6 kB / 458.4 MB, free: 1.496 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.4543, allocations: 0.776 MB / 459.2 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.4545, allocations: 22.06 kB / 459.2 MB, free: 0.668 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.4546, allocations: 85.09 kB / 459.3 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4546, allocations: 0 / 459.3 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.4788, allocations: 4.731 MB / 464 MB, free: 11.91 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002896/0.4792, allocations: 146.4 kB / 464.2 MB, free: 11.72 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/2.226, allocations: 0 / 464.2 MB, free: 11.72 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