Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009877/0.0009877, allocations: 181.3 kB / 8.7 MB, free: 352 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008302/0.0008305, allocations: 78.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.763e-05/1.766e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09406/0.09409, allocations: 47.59 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3571/0.4513, allocations: 78.6 MB / 441.8 MB, free: 1.086 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.4516, allocations: 76.2 kB / 441.9 MB, free: 1.047 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01578/0.4674, allocations: 5.619 MB / 447.5 MB, free: 12.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4674, allocations: 4 kB / 447.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.4674, allocations: 8 kB / 447.5 MB, free: 12.29 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009581/0.4684, allocations: 0.5779 MB / 448.1 MB, free: 11.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.4685, allocations: 8.031 kB / 448.1 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.447e-05/0.4685, allocations: 27.72 kB / 448.1 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.4689, allocations: 262.6 kB / 448.4 MB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.4689, allocations: 7.953 kB / 448.4 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.469, allocations: 15.06 kB / 448.4 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002802/0.4693, allocations: 157.5 kB / 448.5 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.4696, allocations: 164.9 kB / 448.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.4696, allocations: 0 / 448.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.4696, allocations: 7.922 kB / 448.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.4696, allocations: 4 kB / 448.7 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.4711, allocations: 0.8881 MB / 449.6 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/0.4715, allocations: 142.2 kB / 449.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.853e-05/0.4716, allocations: 56.73 kB / 449.8 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.4716, allocations: 7.938 kB / 449.8 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/0.4719, allocations: 122.9 kB / 449.9 MB, free: 10.04 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.4719, allocations: 0 / 449.9 MB, free: 10.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005388/0.4724, allocations: 217.2 kB / 450.1 MB, free: 9.852 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.4725, allocations: 102.8 kB / 450.2 MB, free: 9.727 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.4727, allocations: 218.8 kB / 450.4 MB, free: 9.547 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.4727, allocations: 25.7 kB / 450.5 MB, free: 9.516 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.63e-05/0.4728, allocations: 176.9 kB / 450.6 MB, free: 9.367 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.424e-05/0.4729, allocations: 45.83 kB / 450.7 MB, free: 9.328 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.121e-05/0.4729, allocations: 0 / 450.7 MB, free: 9.328 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.473, allocations: 330.3 kB / 451 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.386e-05/0.4731, allocations: 49.88 kB / 451.1 MB, free: 8.977 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.4733, allocations: 107.2 kB / 451.2 MB, free: 8.871 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.501e-05/0.4734, allocations: 63.69 kB / 451.2 MB, free: 8.828 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4734, allocations: 0 / 451.2 MB, free: 8.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005081/0.4739, allocations: 269.3 kB / 451.5 MB, free: 8.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002994/0.4742, allocations: 0.6503 MB / 452.1 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.4742, allocations: 0 / 452.1 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001995/0.4744, allocations: 46.03 kB / 452.2 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.4746, allocations: 43.22 kB / 452.2 MB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004164/0.475, allocations: 0.5878 MB / 452.8 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.4753, allocations: 47.72 kB / 452.9 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.4754, allocations: 11.62 kB / 452.9 MB, free: 7.195 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.544e-06/0.4754, allocations: 4 kB / 452.9 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003324/0.4757, allocations: 177.6 kB / 453.1 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-06/0.4757, allocations: 3.938 kB / 453.1 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.339e-05/0.4758, allocations: 38.91 kB / 453.1 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.476, allocations: 40.16 kB / 453.1 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.4772, allocations: 1.484 MB / 454.6 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.4775, allocations: 43.44 kB / 454.7 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.4775, allocations: 8 kB / 454.7 MB, free: 5.449 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.000164/0.4777, allocations: 120.8 kB / 454.8 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004546/0.4781, allocations: 208 kB / 455 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.4782, allocations: 19.81 kB / 455 MB, free: 5.125 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.545e-05/0.4782, allocations: 24.2 kB / 455 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.4782, allocations: 0 / 455 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.4783, allocations: 0 / 455 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4783, allocations: 7.938 kB / 455 MB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002468/0.4785, allocations: 262.7 kB / 455.3 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.4785, allocations: 0 / 455.3 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.4787, allocations: 27.97 kB / 455.3 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001266/0.4788, allocations: 47.33 kB / 455.4 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.4788, allocations: 0 / 455.4 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/0.4801, allocations: 1.454 MB / 456.8 MB, free: 3.328 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4802, allocations: 0 / 456.8 MB, free: 3.328 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004177/0.4806, allocations: 243.2 kB / 457.1 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/0.4807, allocations: 96.34 kB / 457.2 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.4807, allocations: 4 kB / 457.2 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.4809, allocations: 39.92 kB / 457.2 MB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.161e-05/0.481, allocations: 22.41 kB / 457.2 MB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.4811, allocations: 7.984 kB / 457.2 MB, free: 2.93 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001498/0.4812, allocations: 160.4 kB / 457.4 MB, free: 2.805 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4812, allocations: 0 / 457.4 MB, free: 2.805 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004618/0.4817, allocations: 114.7 kB / 457.5 MB, free: 2.695 MB / 330.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007676/0.4825, allocations: 0.7809 MB / 458.3 MB, free: 1.918 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006451/0.4831, allocations: 458 kB / 458.7 MB, free: 1.516 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4831, allocations: 4 kB / 458.7 MB, free: 1.512 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.4834, allocations: 177.2 kB / 458.9 MB, free: 1.355 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.4837, allocations: 43.64 kB / 458.9 MB, free: 1.316 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006879/0.4844, allocations: 323.7 kB / 459.3 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.4847, allocations: 0.7567 MB / 460 MB, free: 216 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001556/0.4848, allocations: 34.05 kB / 460 MB, free: 180 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.002e-05/0.4849, allocations: 70.97 kB / 460.1 MB, free: 160 kB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.485, allocations: 0 / 460.1 MB, free: 160 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/0.5108, allocations: 5.127 MB / 465.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002181/0.5111, allocations: 149.3 kB / 465.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.755/2.266, allocations: 0 / 465.4 MB, free: 10.83 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat does not exist to compare? outputFormat=mat