Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",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.001256/0.001256, allocations: 177.1 kB / 8.35 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.456/1.456, allocations: 221.5 MB / 230.3 MB, free: 7.52 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.0008842/0.0008841, allocations: 94.64 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.212e-05/4.209e-05, allocations: 8 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1209, allocations: 50.41 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3524/0.4734, allocations: 77.87 MB / 465.4 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4736, allocations: 67.97 kB / 465.5 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008395/0.482, allocations: 2.8 MB / 468.3 MB, free: 13.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4821, allocations: 0 / 468.3 MB, free: 13.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.4821, allocations: 0 / 468.3 MB, free: 13.97 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000497/0.4826, allocations: 415.2 kB / 468.7 MB, free: 13.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.4827, allocations: 8.031 kB / 468.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.4828, allocations: 11.91 kB / 468.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002396/0.483, allocations: 204 kB / 468.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.483, allocations: 4 kB / 468.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.4831, allocations: 8 kB / 468.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001527/0.4832, allocations: 60.47 kB / 469 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.4834, allocations: 99.25 kB / 469.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.4834, allocations: 4 kB / 469.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.4835, allocations: 0 / 469.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4835, allocations: 0 / 469.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000891/0.4844, allocations: 0.5747 MB / 469.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.4847, allocations: 78.62 kB / 469.7 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.535e-05/0.4847, allocations: 24.98 kB / 469.8 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.4848, allocations: 4 kB / 469.8 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.4848, allocations: 30.56 kB / 469.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.4848, allocations: 0 / 469.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003533/0.4852, allocations: 110.3 kB / 469.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.4852, allocations: 51.41 kB / 470 MB, free: 12.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.4854, allocations: 130.5 kB / 470.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.4854, allocations: 25.7 kB / 470.1 MB, free: 11.95 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.987e-05/0.4855, allocations: 128 kB / 470.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.4855, allocations: 19.72 kB / 470.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-06/0.4855, allocations: 0 / 470.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4857, allocations: 322.8 kB / 470.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.344e-05/0.4857, allocations: 19.94 kB / 470.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.824e-05/0.4858, allocations: 34.58 kB / 470.6 MB, free: 11.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.651e-05/0.4859, allocations: 27.98 kB / 470.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.4859, allocations: 0 / 470.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002533/0.4861, allocations: 114.3 kB / 470.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4862, allocations: 4 kB / 470.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.4862, allocations: 192 / 470.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002006/0.4864, allocations: 36.84 kB / 470.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.556e-05/0.4865, allocations: 27.88 kB / 470.8 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.4878, allocations: 1.439 MB / 472.3 MB, free: 9.629 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.749e-05/0.4879, allocations: 7.938 kB / 472.3 MB, free: 9.621 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.4879, allocations: 0 / 472.3 MB, free: 9.621 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 (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 7.925e-05/0.488, allocations: 108.9 kB / 472.4 MB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002377/0.4882, allocations: 106.4 kB / 472.5 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.31e-05/0.4883, allocations: 11.81 kB / 472.5 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.601e-05/0.4883, allocations: 20.84 kB / 472.5 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.4883, allocations: 4.062 kB / 472.5 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.4883, allocations: 4 kB / 472.5 MB, free: 9.359 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.4884, allocations: 3.953 kB / 472.5 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/0.4886, allocations: 178.2 kB / 472.7 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4886, allocations: 0 / 472.7 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.023e-05/0.4886, allocations: 4 kB / 472.7 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001264/0.4888, allocations: 36.83 kB / 472.7 MB, free: 9.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.4888, allocations: 0 / 472.7 MB, free: 9.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001153/0.4899, allocations: 1.443 MB / 474.2 MB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.49, allocations: 8.016 kB / 474.2 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.4902, allocations: 196.5 kB / 474.4 MB, free: 7.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.742e-05/0.4903, allocations: 84.97 kB / 474.5 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.4903, allocations: 7.938 kB / 474.5 MB, free: 7.211 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.4904, allocations: 8 kB / 474.5 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.201e-05/0.4905, allocations: 15.92 kB / 474.5 MB, free: 7.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.4905, allocations: 0 / 474.5 MB, free: 7.188 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.449e-05/0.4906, allocations: 109.8 kB / 474.6 MB, free: 7.082 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4906, allocations: 0 / 474.6 MB, free: 7.082 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003593/0.4909, allocations: 39.84 kB / 474.6 MB, free: 7.043 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 (2): * Single equations (assignments): 1 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006005/0.4915, allocations: 0.7327 MB / 475.4 MB, free: 6.281 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003222/0.4919, allocations: 153.8 kB / 475.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4919, allocations: 0 / 475.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.4921, allocations: 141.7 kB / 475.7 MB, free: 5.973 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.4923, allocations: 12.12 kB / 475.7 MB, free: 5.961 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005663/0.4929, allocations: 183 kB / 475.9 MB, free: 5.746 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.4933, allocations: 0.7157 MB / 476.6 MB, free: 5.004 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.461e-05/0.4934, allocations: 12.38 kB / 476.6 MB, free: 4.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.952e-05/0.4935, allocations: 31.42 kB / 476.6 MB, free: 4.961 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4935, allocations: 3.938 kB / 476.6 MB, free: 4.957 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.5167, allocations: 2.107 MB / 478.7 MB, free: 2.867 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.5169, allocations: 132 kB / 478.9 MB, free: 2.676 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.544/2.061, allocations: 0 / 478.9 MB, free: 2.676 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat