Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 221.3 MB / 235.5 MB, free: 2.922 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007719/0.0007719, allocations: 97.77 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.869e-05/2.871e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1182, allocations: 50.43 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2909/0.4091, allocations: 78.74 MB / 473.1 MB, free: 8.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001918/0.4094, allocations: 71.95 kB / 473.2 MB, free: 8.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01309/0.4225, allocations: 5.131 MB / 478.3 MB, free: 3.539 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4225, allocations: 4.188 kB / 478.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.273e-05/0.4225, allocations: 12 kB / 478.3 MB, free: 3.523 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.0008172/0.4233, allocations: 0.5653 MB / 478.9 MB, free: 2.914 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.4234, allocations: 8.031 kB / 478.9 MB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.905e-05/0.4235, allocations: 66.55 kB / 478.9 MB, free: 2.832 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.503e-05/0.4236, allocations: 43.47 kB / 479 MB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.4239, allocations: 266.4 kB / 479.2 MB, free: 2.488 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.4239, allocations: 20.56 kB / 479.3 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.586e-05/0.4239, allocations: 31.94 kB / 479.3 MB, free: 2.434 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/0.4244, allocations: 236.9 kB / 479.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.4244, allocations: 0 / 479.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/0.4245, allocations: 15.95 kB / 479.5 MB, free: 2.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.4245, allocations: 4 kB / 479.5 MB, free: 2.176 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.4248, allocations: 178.2 kB / 479.7 MB, free: 2.004 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.4264, allocations: 0.9875 MB / 480.7 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.4267, allocations: 207.2 kB / 480.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.4269, allocations: 105.2 kB / 481 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.4269, allocations: 192 / 481 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.427, allocations: 42.7 kB / 481.1 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.427, allocations: 4 kB / 481.1 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004865/0.4275, allocations: 237.7 kB / 481.3 MB, free: 336 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.4275, allocations: 55.34 kB / 481.3 MB, free: 268 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/0.4277, allocations: 230.9 kB / 481.6 MB, free: 32 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.4278, allocations: 29.75 kB / 481.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.4279, allocations: 188 kB / 481.8 MB, free: 15.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.4279, allocations: 70.91 kB / 481.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.428, allocations: 4 kB / 481.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4281, allocations: 334.8 kB / 482.2 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.4282, allocations: 56.47 kB / 482.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.4284, allocations: 87.5 kB / 482.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.4285, allocations: 67.98 kB / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.4285, allocations: 0 / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004676/0.429, allocations: 282.8 kB / 482.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.429, allocations: 4 kB / 482.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.429, allocations: 4 kB / 482.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002501/0.4293, allocations: 85.62 kB / 482.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.4295, allocations: 39.97 kB / 482.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/0.4316, allocations: 2.831 MB / 485.6 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.4318, allocations: 27.77 kB / 485.7 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.4318, allocations: 12 kB / 485.7 MB, free: 11.61 MB / 362.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 8.48e-05/0.4319, allocations: 117 kB / 485.8 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.934e-05/0.4319, allocations: 27.66 kB / 485.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.145e-05/0.432, allocations: 30.16 kB / 485.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.432, allocations: 4 kB / 485.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.432, allocations: 4 kB / 485.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.432, allocations: 4 kB / 485.9 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007797/0.4328, allocations: 0.6512 MB / 486.5 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.4328, allocations: 3.953 kB / 486.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/0.433, allocations: 31.97 kB / 486.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001819/0.4332, allocations: 81.55 kB / 486.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.4332, allocations: 0 / 486.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001871/0.4351, allocations: 2.815 MB / 489.4 MB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.4351, allocations: 0 / 489.4 MB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004169/0.4355, allocations: 352.7 kB / 489.8 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.068e-05/0.4356, allocations: 104.8 kB / 489.9 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.631e-05/0.4356, allocations: 3.984 kB / 489.9 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.4359, allocations: 35.98 kB / 489.9 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.436, allocations: 23.97 kB / 489.9 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.436, allocations: 4 kB / 489.9 MB, free: 6.957 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000154/0.4361, allocations: 183.1 kB / 490.1 MB, free: 6.781 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4361, allocations: 0 / 490.1 MB, free: 6.781 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003828/0.4365, allocations: 95.84 kB / 490.2 MB, free: 6.688 MB / 362.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.0006992/0.4372, allocations: 0.8816 MB / 491.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005346/0.4378, allocations: 411.8 kB / 491.5 MB, free: 5.344 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.4378, allocations: 0 / 491.5 MB, free: 5.344 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.4381, allocations: 337.1 kB / 491.8 MB, free: 4.988 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.4384, allocations: 41.62 kB / 491.9 MB, free: 4.945 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007499/0.4392, allocations: 374.6 kB / 492.2 MB, free: 4.547 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.4395, allocations: 0.7755 MB / 493 MB, free: 3.746 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.4397, allocations: 18.08 kB / 493 MB, free: 3.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.4398, allocations: 95.33 kB / 493.1 MB, free: 3.637 MB / 362.7 MB Notification: Performance of SimCode: time 5.92e-07/0.4398, allocations: 0 / 493.1 MB, free: 3.637 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01903/0.4588, allocations: 5.646 MB / 498.8 MB, free: 14.15 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/0.459, allocations: 185.1 kB / 499 MB, free: 13.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/2.252, allocations: 0.7031 kB / 499 MB, free: 13.93 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat