Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",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.001729/0.001729, 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.425/1.425, allocations: 221.5 MB / 230.3 MB, free: 7.59 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.0008174/0.0008172, allocations: 91.27 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.329e-05/2.344e-05, allocations: 4 kB / 337.2 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 50.43 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4496, allocations: 80.16 MB / 467.7 MB, free: 14.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.4499, allocations: 79.95 kB / 467.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01573/0.4657, allocations: 6.125 MB / 473.9 MB, free: 8.332 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4657, allocations: 0 / 473.9 MB, free: 8.332 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.373e-05/0.4657, allocations: 8 kB / 473.9 MB, free: 8.324 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0009276/0.4667, allocations: 0.5966 MB / 474.5 MB, free: 7.684 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.4667, allocations: 12.22 kB / 474.6 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.329e-05/0.4668, allocations: 43.53 kB / 474.6 MB, free: 7.629 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.4672, allocations: 312.2 kB / 474.9 MB, free: 7.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.4672, allocations: 12 kB / 474.9 MB, free: 7.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.895e-05/0.4673, allocations: 20 kB / 474.9 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004207/0.4677, allocations: 241.5 kB / 475.2 MB, free: 7.012 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004952/0.4682, allocations: 305.7 kB / 475.5 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.4682, allocations: 0 / 475.5 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.4683, allocations: 0 / 475.5 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.4683, allocations: 12 kB / 475.5 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.4704, allocations: 1.398 MB / 476.9 MB, free: 5.211 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003739/0.4708, allocations: 170.9 kB / 477 MB, free: 5.035 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.4709, allocations: 76.78 kB / 477.1 MB, free: 4.957 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.471, allocations: 7.953 kB / 477.1 MB, free: 4.949 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.471, allocations: 34.56 kB / 477.2 MB, free: 4.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.362e-06/0.471, allocations: 0 / 477.2 MB, free: 4.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006722/0.4717, allocations: 259.2 kB / 477.4 MB, free: 4.641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/0.4717, allocations: 55.34 kB / 477.5 MB, free: 4.574 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00023/0.472, allocations: 234.4 kB / 477.7 MB, free: 4.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.472, allocations: 25.7 kB / 477.7 MB, free: 4.309 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.4721, allocations: 231.8 kB / 477.9 MB, free: 4.078 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.817e-05/0.4722, allocations: 55.27 kB / 478 MB, free: 4.023 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.115e-05/0.4722, allocations: 0 / 478 MB, free: 4.023 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4723, allocations: 334.8 kB / 478.3 MB, free: 3.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.232e-05/0.4724, allocations: 52 kB / 478.4 MB, free: 3.637 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.4726, allocations: 133.4 kB / 478.5 MB, free: 3.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.4727, allocations: 67.98 kB / 478.6 MB, free: 3.406 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4727, allocations: 0 / 478.6 MB, free: 3.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006916/0.4734, allocations: 352.3 kB / 478.9 MB, free: 3.051 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.4734, allocations: 5.406 kB / 478.9 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.4734, allocations: 4 kB / 478.9 MB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002714/0.4737, allocations: 78.88 kB / 479 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.4739, allocations: 47.94 kB / 479.1 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002406/0.4763, allocations: 2.934 MB / 482 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.4765, allocations: 27.73 kB / 482 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.4766, allocations: 20.06 kB / 482 MB, free: 15.7 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: feedback.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: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.4767, allocations: 112.8 kB / 482.1 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000581/0.4773, allocations: 263.6 kB / 482.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.147e-05/0.4774, allocations: 27.7 kB / 482.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.848e-05/0.4774, allocations: 21.97 kB / 482.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.4774, allocations: 3.953 kB / 482.5 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.4774, allocations: 0 / 482.5 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4774, allocations: 7.984 kB / 482.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003228/0.4778, allocations: 313.9 kB / 482.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.4778, allocations: 3.938 kB / 482.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.346e-05/0.4779, allocations: 15.98 kB / 482.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001833/0.4781, allocations: 69.69 kB / 482.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.4781, allocations: 0 / 482.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00229/0.4804, allocations: 2.93 MB / 485.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4804, allocations: 0 / 485.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006048/0.481, allocations: 361.8 kB / 486.1 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.33e-05/0.4811, allocations: 104.8 kB / 486.2 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.4811, allocations: 0 / 486.2 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.4814, allocations: 27.98 kB / 486.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.4814, allocations: 19.92 kB / 486.3 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.4814, allocations: 0 / 486.3 MB, free: 11.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001602/0.4816, allocations: 186 kB / 486.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4816, allocations: 0 / 486.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004691/0.4821, allocations: 99.69 kB / 486.6 MB, free: 10.84 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 (9): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008817/0.483, allocations: 0.8945 MB / 487.5 MB, free: 9.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005246/0.4835, allocations: 397.7 kB / 487.9 MB, free: 9.504 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.4835, allocations: 3.984 kB / 487.9 MB, free: 9.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002719/0.4838, allocations: 295.5 kB / 488.1 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.4841, allocations: 39.47 kB / 488.2 MB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008251/0.4849, allocations: 403.5 kB / 488.6 MB, free: 8.723 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.4853, allocations: 0.7833 MB / 489.4 MB, free: 7.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.4854, allocations: 30 kB / 489.4 MB, free: 7.879 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.4855, allocations: 103.4 kB / 489.5 MB, free: 7.777 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4855, allocations: 0 / 489.5 MB, free: 7.777 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.5104, allocations: 5.371 MB / 494.9 MB, free: 2.441 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002289/0.5107, allocations: 142.1 kB / 495 MB, free: 2.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/2.245, allocations: 4 kB / 495 MB, free: 2.246 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat does not exist to compare? outputFormat=mat