Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",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.002178/0.002178, allocations: 178.2 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.176/2.176, 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.001107/0.001107, allocations: 85.25 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.135e-05/3.147e-05, allocations: 11.92 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3403, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1269/0.4672, allocations: 78.5 MB / 440.9 MB, free: 7.723 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.4675, allocations: 79.95 kB / 441 MB, free: 7.645 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02665/0.4942, allocations: 5.436 MB / 446.5 MB, free: 2.23 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4943, allocations: 0.5625 kB / 446.5 MB, free: 2.23 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.693e-05/0.4943, allocations: 8 kB / 446.5 MB, free: 2.223 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.001432/0.4958, allocations: 0.562 MB / 447 MB, free: 1.609 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.4958, allocations: 12.03 kB / 447 MB, free: 1.598 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.4959, allocations: 23.72 kB / 447.1 MB, free: 1.574 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004937/0.4964, allocations: 263.3 kB / 447.3 MB, free: 1.277 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.4965, allocations: 9.547 kB / 447.3 MB, free: 1.27 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.062e-05/0.4965, allocations: 12 kB / 447.3 MB, free: 1.258 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004527/0.497, allocations: 144.7 kB / 447.5 MB, free: 1.117 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.4975, allocations: 164 kB / 447.6 MB, free: 0.9492 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.4975, allocations: 0 / 447.6 MB, free: 0.9492 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.4975, allocations: 4 kB / 447.6 MB, free: 0.9453 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.4976, allocations: 4 kB / 447.6 MB, free: 0.9414 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002385/0.5, allocations: 0.8433 MB / 448.5 MB, free: 40 kB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00058/0.5006, allocations: 146.7 kB / 448.6 MB, free: 15.89 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.5008, allocations: 60.34 kB / 448.7 MB, free: 15.83 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.22e-05/0.5008, allocations: 4 kB / 448.7 MB, free: 15.82 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.5011, allocations: 113.3 kB / 448.8 MB, free: 15.7 MB / 347.1 MB Notification: Performance of pre-optimization done (n=13): time 4.779e-06/0.5011, allocations: 4 kB / 448.8 MB, free: 15.69 MB / 347.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007483/0.5019, allocations: 182.1 kB / 449 MB, free: 15.5 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.001e-05/0.502, allocations: 93.09 kB / 449.1 MB, free: 15.39 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.5023, allocations: 197.9 kB / 449.3 MB, free: 15.19 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.94e-05/0.5024, allocations: 26.73 kB / 449.3 MB, free: 15.16 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.5026, allocations: 222.3 kB / 449.5 MB, free: 14.94 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.5026, allocations: 43.45 kB / 449.6 MB, free: 14.9 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.5027, allocations: 0 / 449.6 MB, free: 14.9 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.5028, allocations: 318.8 kB / 449.9 MB, free: 14.58 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.503, allocations: 50.62 kB / 449.9 MB, free: 14.53 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.5032, allocations: 95.06 kB / 450 MB, free: 14.41 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.5034, allocations: 58.72 kB / 450.1 MB, free: 14.36 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.5034, allocations: 0 / 450.1 MB, free: 14.36 MB / 347.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008331/0.5043, allocations: 238.1 kB / 450.3 MB, free: 14.11 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003723/0.5046, allocations: 0.6414 MB / 450.9 MB, free: 13.42 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.5047, allocations: 1.406 kB / 450.9 MB, free: 13.42 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000221/0.5049, allocations: 32.84 kB / 451 MB, free: 13.38 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004092/0.5053, allocations: 55.89 kB / 451 MB, free: 13.33 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005417/0.5059, allocations: 0.5524 MB / 451.6 MB, free: 12.75 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005014/0.5064, allocations: 39.81 kB / 451.6 MB, free: 12.71 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.5065, allocations: 8 kB / 451.6 MB, free: 12.7 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.5065, allocations: 8.062 kB / 451.6 MB, free: 12.7 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005147/0.507, allocations: 160.5 kB / 451.8 MB, free: 12.54 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.507, allocations: 4 kB / 451.8 MB, free: 12.53 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001049/0.5071, allocations: 20.84 kB / 451.8 MB, free: 12.51 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.5076, allocations: 52.16 kB / 451.9 MB, free: 12.46 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.5089, allocations: 1.333 MB / 453.2 MB, free: 11.02 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/0.5094, allocations: 31.83 kB / 453.2 MB, free: 10.98 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.5094, allocations: 11.98 kB / 453.2 MB, free: 10.97 MB / 347.1 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 (20): * Single equations (assignments): 18 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002052/0.5096, allocations: 112.4 kB / 453.4 MB, free: 10.86 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006482/0.5103, allocations: 187.3 kB / 453.5 MB, free: 10.67 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/0.5103, allocations: 23.75 kB / 453.6 MB, free: 10.64 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.56e-05/0.5104, allocations: 21.95 kB / 453.6 MB, free: 10.62 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.5104, allocations: 0 / 453.6 MB, free: 10.62 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.5105, allocations: 0.875 kB / 453.6 MB, free: 10.62 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.5105, allocations: 0 / 453.6 MB, free: 10.62 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003734/0.5109, allocations: 260.1 kB / 453.8 MB, free: 10.34 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.361e-06/0.5109, allocations: 3.953 kB / 453.8 MB, free: 10.33 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.5112, allocations: 35.97 kB / 453.9 MB, free: 10.3 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/0.5114, allocations: 32.84 kB / 453.9 MB, free: 10.26 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.5114, allocations: 0.75 kB / 453.9 MB, free: 10.26 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001468/0.5129, allocations: 1.312 MB / 455.2 MB, free: 8.836 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.513, allocations: 0 / 455.2 MB, free: 8.836 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008337/0.5138, allocations: 275.3 kB / 455.5 MB, free: 8.547 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.5139, allocations: 93.45 kB / 455.6 MB, free: 8.438 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.514, allocations: 11.92 kB / 455.6 MB, free: 8.426 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003955/0.5144, allocations: 27.97 kB / 455.6 MB, free: 8.398 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.5145, allocations: 24.03 kB / 455.6 MB, free: 8.375 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.5145, allocations: 7.938 kB / 455.7 MB, free: 8.371 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002354/0.5148, allocations: 153.1 kB / 455.8 MB, free: 8.223 MB / 347.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5148, allocations: 4 kB / 455.8 MB, free: 8.219 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006955/0.5155, allocations: 95.69 kB / 455.9 MB, free: 8.125 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: 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 (11): * Single equations (assignments): 8 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001222/0.5167, allocations: 0.8281 MB / 456.7 MB, free: 7.266 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0009672/0.5177, allocations: 424.9 kB / 457.1 MB, free: 6.816 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.5178, allocations: 0 / 457.1 MB, free: 6.816 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003093/0.5181, allocations: 165.7 kB / 457.3 MB, free: 6.645 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.5185, allocations: 36.67 kB / 457.3 MB, free: 6.609 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.5198, allocations: 397.1 kB / 457.7 MB, free: 6.18 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.5202, allocations: 0.7482 MB / 458.5 MB, free: 5.402 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.5204, allocations: 67.41 kB / 458.5 MB, free: 5.336 MB / 347.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5204, allocations: 0 / 458.5 MB, free: 5.336 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.652/3.172, allocations: 4.699 MB / 463.2 MB, free: 0.668 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat