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.000963/0.0009631, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0009022/0.000902, allocations: 82.06 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.893e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1147, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3514/0.4661, allocations: 78.08 MB / 465.6 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.4663, allocations: 73.78 kB / 465.7 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01308/0.4794, allocations: 5.087 MB / 470.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4795, allocations: 0 / 470.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.076e-05/0.4795, allocations: 8 kB / 470.8 MB, free: 11.53 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.0008293/0.4803, allocations: 0.5614 MB / 471.4 MB, free: 10.92 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.4804, allocations: 12.03 kB / 471.4 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.332e-05/0.4805, allocations: 39.47 kB / 471.4 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000319/0.4808, allocations: 278.7 kB / 471.7 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.4808, allocations: 8 kB / 471.7 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.127e-05/0.4809, allocations: 12 kB / 471.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003032/0.4812, allocations: 165.1 kB / 471.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.4815, allocations: 199.7 kB / 472.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.4815, allocations: 0 / 472.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.594e-05/0.4816, allocations: 7.953 kB / 472.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.4816, allocations: 11.98 kB / 472.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.4832, allocations: 0.9246 MB / 473 MB, free: 9.168 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003522/0.4836, allocations: 183.1 kB / 473.2 MB, free: 8.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.4838, allocations: 101.2 kB / 473.3 MB, free: 8.879 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.4838, allocations: 4.188 kB / 473.3 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.4838, allocations: 34.75 kB / 473.3 MB, free: 8.832 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.4839, allocations: 0 / 473.3 MB, free: 8.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004989/0.4844, allocations: 233.8 kB / 473.6 MB, free: 8.594 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.4844, allocations: 55.41 kB / 473.6 MB, free: 8.527 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.4846, allocations: 204.4 kB / 473.8 MB, free: 8.324 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.4847, allocations: 29.7 kB / 473.8 MB, free: 8.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.4848, allocations: 184 kB / 474 MB, free: 8.105 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.854e-05/0.4848, allocations: 70.91 kB / 474.1 MB, free: 8.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.498e-06/0.4849, allocations: 0 / 474.1 MB, free: 8.035 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.485, allocations: 330.8 kB / 474.4 MB, free: 7.703 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.587e-05/0.4851, allocations: 60.47 kB / 474.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.4852, allocations: 75.27 kB / 474.5 MB, free: 7.559 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.4854, allocations: 63.92 kB / 474.6 MB, free: 7.496 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4854, allocations: 0.75 kB / 474.6 MB, free: 7.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004317/0.4858, allocations: 259 kB / 474.9 MB, free: 7.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.4858, allocations: 4 kB / 474.9 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.4858, allocations: 4 kB / 474.9 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002475/0.4861, allocations: 73.61 kB / 474.9 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.4863, allocations: 39.98 kB / 475 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002079/0.4884, allocations: 2.716 MB / 477.7 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001803/0.4886, allocations: 35.94 kB / 477.7 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.4886, allocations: 11.94 kB / 477.7 MB, free: 4.117 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 () * 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 9.074e-05/0.4887, allocations: 104.9 kB / 477.8 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003429/0.4891, allocations: 225.3 kB / 478.1 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.4e-05/0.4891, allocations: 23.72 kB / 478.1 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.4892, allocations: 25.95 kB / 478.1 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.4892, allocations: 4 kB / 478.1 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.4892, allocations: 3.953 kB / 478.1 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.4892, allocations: 0 / 478.1 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006705/0.4899, allocations: 0.5862 MB / 478.7 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4899, allocations: 0 / 478.7 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.49, allocations: 28.16 kB / 478.7 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001709/0.4902, allocations: 77.67 kB / 478.8 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.4902, allocations: 3.938 kB / 478.8 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001775/0.492, allocations: 2.716 MB / 481.5 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.492, allocations: 0 / 481.5 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004027/0.4924, allocations: 319.9 kB / 481.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.804e-05/0.4925, allocations: 100.8 kB / 481.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.4926, allocations: 3.984 kB / 481.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000251/0.4928, allocations: 31.98 kB / 482 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.864e-05/0.4929, allocations: 23.92 kB / 482 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.4929, allocations: 4 kB / 482 MB, free: 15.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001288/0.493, allocations: 164.5 kB / 482.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.493, allocations: 0 / 482.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003508/0.4934, allocations: 87.69 kB / 482.2 MB, free: 15.27 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.0006629/0.4941, allocations: 0.8582 MB / 483.1 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000511/0.4946, allocations: 391.3 kB / 483.5 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4946, allocations: 3.938 kB / 483.5 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002979/0.4949, allocations: 307.4 kB / 483.8 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.4952, allocations: 34.31 kB / 483.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006679/0.4959, allocations: 352 kB / 484.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.4962, allocations: 0.7755 MB / 484.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.4963, allocations: 18.08 kB / 485 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.4964, allocations: 83.41 kB / 485 MB, free: 12.33 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4964, allocations: 3.938 kB / 485 MB, free: 12.33 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.5206, allocations: 4.721 MB / 489.8 MB, free: 7.641 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/0.5209, allocations: 145.5 kB / 489.9 MB, free: 7.449 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.176, allocations: 0 / 489.9 MB, free: 7.449 MB / 362.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