Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002036/0.002036, allocations: 106.4 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004181/0.004181, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.265/2.265, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6665/0.6688, allocations: 49.44 MB / 400.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.01168/0.6806, allocations: 3.219 MB / 403.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003659/0.6844, allocations: 0.9584 MB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005837/0.685, allocations: 8 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004874/0.6856, allocations: 63.36 kB / 404.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008186/0.6865, allocations: 123 kB / 404.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007171/0.6872, allocations: 147.6 kB / 404.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008531/0.688, allocations: 486 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004233/0.6885, allocations: 127.2 kB / 405.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003621/0.6889, allocations: 183.3 kB / 405.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004181/0.6893, allocations: 215.1 kB / 405.8 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.007e-05/0.6894, allocations: 40 kB / 405.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002845/0.6897, allocations: 75.97 kB / 405.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.6898, allocations: 95.66 kB / 406 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000339/0.6902, allocations: 206.9 kB / 406.2 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009869/0.6912, allocations: 0.4999 MB / 406.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.13e-05/0.6912, allocations: 0 / 406.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.369e-06/0.6912, allocations: 0 / 406.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.328e-05/0.6913, allocations: 0 / 406.7 MB, free: 2.395 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.002232/0.6935, allocations: 0.7326 MB / 407.4 MB, free: 1.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.235e-05/0.6936, allocations: 11.89 kB / 407.4 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001529/0.6938, allocations: 70.72 kB / 407.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.694, allocations: 44.38 kB / 407.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009057/0.6949, allocations: 303.4 kB / 407.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.853e-05/0.695, allocations: 33.03 kB / 407.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.6951, allocations: 36.28 kB / 407.9 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.6961, allocations: 353.1 kB / 408.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.6962, allocations: 0 / 408.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.614e-05/0.6962, allocations: 16 kB / 408.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.6963, allocations: 11.94 kB / 408.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007262/0.697, allocations: 234.5 kB / 408.5 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003152/0.7002, allocations: 1.166 MB / 409.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.7013, allocations: 279.5 kB / 409.9 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008185/0.7021, allocations: 221.9 kB / 410.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001372/0.7035, allocations: 1.109 MB / 411.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.657e-05/0.7036, allocations: 38.8 kB / 411.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 6.112e-06/0.7036, allocations: 0 / 411.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.00252/0.7061, allocations: 0.5341 MB / 411.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.7062, allocations: 85.11 kB / 411.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000713/0.707, allocations: 332.5 kB / 412.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.104e-05/0.7071, allocations: 41.64 kB / 412.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.7073, allocations: 208.1 kB / 412.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.7075, allocations: 98.56 kB / 412.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.7077, allocations: 66.06 kB / 412.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002484/0.708, allocations: 350.7 kB / 413 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000398/0.7084, allocations: 100.7 kB / 413.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.7089, allocations: 189.8 kB / 413.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.7099, allocations: 292.3 kB / 413.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.7099, allocations: 4 kB / 413.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001547/0.7115, allocations: 425.6 kB / 414 MB, free: 10.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.7116, allocations: 12 kB / 414 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.7117, allocations: 3.938 kB / 414 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005267/0.7122, allocations: 68.81 kB / 414 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005618/0.7128, allocations: 75.83 kB / 414.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003339/0.7162, allocations: 1.955 MB / 416.1 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006407/0.7168, allocations: 43.58 kB / 416.1 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.086e-05/0.7169, allocations: 16 kB / 416.1 MB, free: 8.156 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004185/0.7173, allocations: 149.7 kB / 416.3 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.7175, allocations: 35.62 kB / 416.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.7187, allocations: 334.4 kB / 416.6 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.7188, allocations: 4 kB / 416.6 MB, free: 7.625 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.7188, allocations: 7.875 kB / 416.7 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-05/0.7188, allocations: 3.984 kB / 416.7 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009016/0.7197, allocations: 393.3 kB / 417 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.7198, allocations: 0 / 417 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005618/0.7203, allocations: 55.95 kB / 417.1 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003622/0.7207, allocations: 60.77 kB / 417.2 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.512e-05/0.7208, allocations: 11.98 kB / 417.2 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007757/0.7216, allocations: 0.6109 MB / 417.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.7216, allocations: 64 / 417.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.7231, allocations: 0.5197 MB / 418.3 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002332/0.7234, allocations: 108.7 kB / 418.4 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.009e-05/0.7235, allocations: 8 kB / 418.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000391/0.7239, allocations: 23.98 kB / 418.4 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.691e-05/0.724, allocations: 15.98 kB / 418.4 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.21e-05/0.724, allocations: 7.984 kB / 418.5 MB, free: 5.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004428/0.7245, allocations: 235.1 kB / 418.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7245, allocations: 0 / 418.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008082/0.7253, allocations: 119.8 kB / 418.8 MB, free: 5.348 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002095/0.7274, allocations: 1.085 MB / 419.9 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.7288, allocations: 430.1 kB / 420.3 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.7289, allocations: 4 kB / 420.3 MB, free: 3.793 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004896/0.7294, allocations: 139.8 kB / 420.4 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006349/0.73, allocations: 49.84 kB / 420.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008345/0.7384, allocations: 3.737 MB / 424.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007723/0.7392, allocations: 0.7873 MB / 425 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002836/0.7396, allocations: 42.89 kB / 425.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003081/0.7399, allocations: 127.4 kB / 425.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.7399, allocations: 0 / 425.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1282/0.8682, allocations: 7.883 MB / 433.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 28.91/29.78, allocations: 11.86 kB / 433.1 MB, free: 7.055 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed_fmu --startTime=0 --stopTime=0.003 --timeout=50 --tolerance=2e-07 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1)