Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.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.SignalGenerator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator",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.002226/0.002225, allocations: 178 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.157/2.157, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00104/0.00104, allocations: 82.44 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.092e-05/3.104e-05, allocations: 11.94 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3863, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1556/0.542, allocations: 77.11 MB / 439.5 MB, free: 9.105 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.5424, allocations: 83.94 kB / 439.6 MB, free: 9.023 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0236/0.566, allocations: 5.141 MB / 444.8 MB, free: 3.922 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.566, allocations: 0 / 444.8 MB, free: 3.922 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.449e-05/0.5661, allocations: 8 kB / 444.8 MB, free: 3.914 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.001271/0.5674, allocations: 0.5597 MB / 445.3 MB, free: 3.312 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.5674, allocations: 12.03 kB / 445.4 MB, free: 3.301 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.5676, allocations: 43.53 kB / 445.4 MB, free: 3.258 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005467/0.5681, allocations: 279.9 kB / 445.7 MB, free: 2.945 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.5682, allocations: 11.95 kB / 445.7 MB, free: 2.934 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.312e-05/0.5682, allocations: 20 kB / 445.7 MB, free: 2.914 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006401/0.5689, allocations: 214.7 kB / 445.9 MB, free: 2.703 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006171/0.5695, allocations: 222.1 kB / 446.1 MB, free: 2.48 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.5696, allocations: 4 kB / 446.1 MB, free: 2.477 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/0.5696, allocations: 0 / 446.1 MB, free: 2.477 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.5696, allocations: 4 kB / 446.1 MB, free: 2.473 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003263/0.5729, allocations: 1.144 MB / 447.3 MB, free: 1.25 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008414/0.5738, allocations: 218.6 kB / 447.5 MB, free: 1.031 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000477/0.5743, allocations: 140.8 kB / 447.6 MB, free: 0.8906 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.5744, allocations: 0 / 447.6 MB, free: 0.8906 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.5744, allocations: 38.86 kB / 447.7 MB, free: 0.8438 MB / 331.1 MB Notification: Performance of pre-optimization done (n=20): time 2.064e-06/0.5744, allocations: 1.875 kB / 447.7 MB, free: 0.8438 MB / 331.1 MB Notification: Performance of matching and sorting (n=20): time 0.001422/0.5759, allocations: 302.9 kB / 448 MB, free: 0.5352 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.5759, allocations: 51.41 kB / 448 MB, free: 484 kB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.5763, allocations: 208.4 kB / 448.2 MB, free: 268 kB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 4.381e-05/0.5764, allocations: 25.7 kB / 448.2 MB, free: 236 kB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.5766, allocations: 270 kB / 448.5 MB, free: 15.96 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.551e-05/0.5767, allocations: 67 kB / 448.6 MB, free: 15.9 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.552e-05/0.5767, allocations: 0 / 448.6 MB, free: 15.9 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.5769, allocations: 326.8 kB / 448.9 MB, free: 15.57 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.5771, allocations: 60 kB / 448.9 MB, free: 15.51 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002613/0.5773, allocations: 154.8 kB / 449.1 MB, free: 15.32 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.5776, allocations: 71.97 kB / 449.2 MB, free: 15.25 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.5776, allocations: 0 / 449.2 MB, free: 15.25 MB / 347.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001531/0.5791, allocations: 384.2 kB / 449.5 MB, free: 14.86 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005908/0.5797, allocations: 1.135 MB / 450.7 MB, free: 13.64 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.5798, allocations: 4 kB / 450.7 MB, free: 13.64 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004828/0.5803, allocations: 84.73 kB / 450.8 MB, free: 13.55 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003896/0.5807, allocations: 59.91 kB / 450.8 MB, free: 13.49 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/0.5825, allocations: 1.218 MB / 452 MB, free: 12.22 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004343/0.583, allocations: 43.73 kB / 452.1 MB, free: 12.18 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.04e-05/0.583, allocations: 9.031 kB / 452.1 MB, free: 12.17 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.583, allocations: 6.656 kB / 452.1 MB, free: 12.17 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006512/0.5837, allocations: 222.6 kB / 452.3 MB, free: 11.95 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.5837, allocations: 4 kB / 452.3 MB, free: 11.94 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002047/0.5839, allocations: 45.69 kB / 452.4 MB, free: 11.89 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/0.5843, allocations: 59.91 kB / 452.4 MB, free: 11.83 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/0.587, allocations: 2.585 MB / 455 MB, free: 9.02 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.5873, allocations: 23.64 kB / 455 MB, free: 8.996 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.109e-05/0.5873, allocations: 12 kB / 455 MB, free: 8.984 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp2.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: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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: 0 * Non-linear torn systems: 2 {1 5,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002327/0.5876, allocations: 117.6 kB / 455.2 MB, free: 8.863 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001232/0.5888, allocations: 301.9 kB / 455.5 MB, free: 8.559 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-05/0.5889, allocations: 28.56 kB / 455.5 MB, free: 8.531 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.096e-05/0.589, allocations: 21.95 kB / 455.5 MB, free: 8.512 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.5891, allocations: 0 / 455.5 MB, free: 8.512 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.5891, allocations: 4 kB / 455.5 MB, free: 8.508 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.5891, allocations: 0 / 455.5 MB, free: 8.508 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.591, allocations: 0.672 MB / 456.2 MB, free: 7.785 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.591, allocations: 0.875 kB / 456.2 MB, free: 7.785 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.5913, allocations: 27.98 kB / 456.2 MB, free: 7.758 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003471/0.5916, allocations: 73.69 kB / 456.3 MB, free: 7.68 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.5917, allocations: 2.812 kB / 456.3 MB, free: 7.68 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004849/0.5965, allocations: 3.013 MB / 459.3 MB, free: 4.441 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.5966, allocations: 0 / 459.3 MB, free: 4.441 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/0.5981, allocations: 481.5 kB / 459.8 MB, free: 3.945 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.5983, allocations: 108.8 kB / 459.9 MB, free: 3.82 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.286e-05/0.5983, allocations: 0 / 459.9 MB, free: 3.82 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003907/0.5987, allocations: 28.05 kB / 459.9 MB, free: 3.793 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.5989, allocations: 15.97 kB / 459.9 MB, free: 3.777 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.5989, allocations: 8 kB / 459.9 MB, free: 3.77 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002402/0.5992, allocations: 160.5 kB / 460.1 MB, free: 3.613 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5992, allocations: 0 / 460.1 MB, free: 3.613 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0009469/0.6001, allocations: 139.5 kB / 460.2 MB, free: 3.477 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * 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: 0 * Non-linear torn systems: 2 {1 5,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001945/0.6021, allocations: 1.019 MB / 461.2 MB, free: 2.426 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.604, allocations: 0.5785 MB / 461.8 MB, free: 1.828 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.604, allocations: 1.438 kB / 461.8 MB, free: 1.828 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.6051, allocations: 383.4 kB / 462.2 MB, free: 1.434 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004914/0.6056, allocations: 38.16 kB / 462.2 MB, free: 1.395 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.6072, allocations: 469.8 kB / 462.7 MB, free: 0.8906 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.6077, allocations: 0.7687 MB / 463.5 MB, free: 96 kB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.6079, allocations: 87.41 kB / 463.5 MB, free: 12 kB / 347.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6079, allocations: 0 / 463.5 MB, free: 12 kB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.727/3.335, allocations: 6.478 MB / 470 MB, free: 9.559 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator_res.mat does not exist to compare? outputFormat=mat