Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.OpAmps.Adder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",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.001343/0.001343, allocations: 176.4 kB / 8.346 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.511/1.511, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008818/0.0008816, allocations: 87.61 kB / 281.1 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.072e-05/2.083e-05, allocations: 11.98 kB / 337.2 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.363/0.4669, allocations: 80.18 MB / 467.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/0.4671, allocations: 81.78 kB / 467.8 MB, free: 14.44 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0146/0.4818, allocations: 5.585 MB / 473.4 MB, free: 8.844 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4818, allocations: 0 / 473.4 MB, free: 8.844 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.849e-05/0.4818, allocations: 8 kB / 473.4 MB, free: 8.836 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0007951/0.4826, allocations: 0.5656 MB / 474 MB, free: 8.227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.4827, allocations: 12.03 kB / 474 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.723e-05/0.4827, allocations: 39.53 kB / 474 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004036/0.4831, allocations: 291.3 kB / 474.3 MB, free: 7.852 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.4832, allocations: 11.98 kB / 474.3 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.953e-05/0.4832, allocations: 20 kB / 474.4 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003811/0.4836, allocations: 209.5 kB / 474.6 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005189/0.4841, allocations: 277.8 kB / 474.8 MB, free: 7.332 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.4842, allocations: 0 / 474.8 MB, free: 7.332 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.665e-05/0.4842, allocations: 0 / 474.8 MB, free: 7.332 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.4842, allocations: 8 kB / 474.8 MB, free: 7.324 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.4861, allocations: 1.225 MB / 476.1 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.4865, allocations: 227.9 kB / 476.3 MB, free: 5.781 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.4866, allocations: 74.11 kB / 476.4 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.4866, allocations: 0 / 476.4 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.4867, allocations: 38.56 kB / 476.4 MB, free: 5.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 9.72e-07/0.4867, allocations: 0 / 476.4 MB, free: 5.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006184/0.4873, allocations: 242.4 kB / 476.6 MB, free: 5.414 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.4873, allocations: 56.52 kB / 476.7 MB, free: 5.348 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.4876, allocations: 226 kB / 476.9 MB, free: 5.117 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.4876, allocations: 25.7 kB / 476.9 MB, free: 5.086 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.4877, allocations: 215.4 kB / 477.1 MB, free: 4.871 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.831e-05/0.4878, allocations: 55.2 kB / 477.2 MB, free: 4.816 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.024e-05/0.4878, allocations: 3.938 kB / 477.2 MB, free: 4.812 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.488, allocations: 338.8 kB / 477.5 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.818e-05/0.4881, allocations: 52 kB / 477.6 MB, free: 4.422 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.4882, allocations: 126.3 kB / 477.7 MB, free: 4.262 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00011/0.4883, allocations: 73.16 kB / 477.8 MB, free: 4.191 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.4883, allocations: 0 / 477.8 MB, free: 4.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006661/0.489, allocations: 327.5 kB / 478.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.489, allocations: 11.94 kB / 478.1 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.489, allocations: 0 / 478.1 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002607/0.4893, allocations: 68.83 kB / 478.2 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.4895, allocations: 39.92 kB / 478.2 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001895/0.4914, allocations: 1.745 MB / 480 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.4916, allocations: 35.73 kB / 480 MB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.4916, allocations: 15.94 kB / 480 MB, free: 1.836 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: add.opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001565/0.4918, allocations: 112.9 kB / 480.1 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005937/0.4924, allocations: 250.6 kB / 480.4 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.46e-05/0.4925, allocations: 23.8 kB / 480.4 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.356e-05/0.4925, allocations: 25.95 kB / 480.4 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.4925, allocations: 0 / 480.4 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-06/0.4925, allocations: 0 / 480.4 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4925, allocations: 0 / 480.4 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009573/0.4935, allocations: 0.6186 MB / 481 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.4935, allocations: 0 / 481 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.66e-05/0.4936, allocations: 23.92 kB / 481.1 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/0.4938, allocations: 64.83 kB / 481.1 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.4938, allocations: 0 / 481.1 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001758/0.4956, allocations: 1.74 MB / 482.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4956, allocations: 0 / 482.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006286/0.4962, allocations: 351.9 kB / 483.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.169e-05/0.4963, allocations: 92.91 kB / 483.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.594e-05/0.4963, allocations: 0 / 483.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.4966, allocations: 27.98 kB / 483.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.135e-05/0.4966, allocations: 15.98 kB / 483.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.4966, allocations: 7.984 kB / 483.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001642/0.4968, allocations: 178 kB / 483.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4968, allocations: 0 / 483.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004774/0.4973, allocations: 83.69 kB / 483.6 MB, free: 14.03 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 (8): * Single equations (assignments): 7 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008927/0.4982, allocations: 0.8744 MB / 484.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004793/0.4987, allocations: 277.5 kB / 484.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4987, allocations: 0.6875 kB / 484.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.499, allocations: 195.6 kB / 484.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.4993, allocations: 28.48 kB / 485 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.5003, allocations: 415.6 kB / 485.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.5007, allocations: 0.7757 MB / 486.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.5008, allocations: 18.08 kB / 486.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.5009, allocations: 91.41 kB / 486.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of SimCode: time 2.094e-06/0.501, allocations: 0 / 486.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0251/0.5261, allocations: 4.914 MB / 491.2 MB, free: 6.371 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/0.5263, allocations: 139.7 kB / 491.3 MB, free: 6.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/2.234, allocations: 4 kB / 491.3 MB, free: 6.176 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat does not exist to compare? outputFormat=mat