Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001678/0.001678, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.458/1.458, allocations: 227.7 MB / 247.2 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 63.91 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.282, allocations: 50.54 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.004774/0.2868, allocations: 2.948 MB / 412 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.2884, allocations: 0.7557 MB / 412.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.2886, allocations: 11.88 kB / 412.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.2888, allocations: 47.56 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001994/0.289, allocations: 99.11 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.2893, allocations: 119.8 kB / 413.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004789/0.2898, allocations: 414.5 kB / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002724/0.2901, allocations: 131.2 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.2903, allocations: 159.4 kB / 413.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.2906, allocations: 171.2 kB / 413.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.354e-05/0.2907, allocations: 44 kB / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.812e-05/0.2907, allocations: 40 kB / 414 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.918e-05/0.2908, allocations: 79.75 kB / 414.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002025/0.291, allocations: 171.2 kB / 414.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005528/0.2916, allocations: 457.3 kB / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2916, allocations: 0 / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2916, allocations: 0 / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.864e-06/0.2916, allocations: 0 / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001401/0.293, allocations: 0.6845 MB / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.2931, allocations: 8.031 kB / 415.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.284e-05/0.2932, allocations: 58.72 kB / 415.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.586e-05/0.2933, allocations: 40.64 kB / 415.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000471/0.2937, allocations: 311.7 kB / 415.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.2938, allocations: 20.94 kB / 415.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/0.2938, allocations: 24.38 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007685/0.2946, allocations: 331.7 kB / 416.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.2946, allocations: 0 / 416.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.2947, allocations: 16 kB / 416.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.2947, allocations: 8 kB / 416.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008237/0.2955, allocations: 274.1 kB / 416.4 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.2976, allocations: 1.151 MB / 417.6 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008949/0.2985, allocations: 250.5 kB / 417.8 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.2989, allocations: 104.8 kB / 417.9 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.2989, allocations: 0 / 417.9 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000546/0.2994, allocations: 184.9 kB / 418.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.2995, allocations: 0 / 418.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002459/0.3019, allocations: 0.663 MB / 418.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.43e-05/0.302, allocations: 118.8 kB / 418.9 MB, free: 7.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003996/0.3024, allocations: 290.5 kB / 419.2 MB, free: 6.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.3025, allocations: 25.7 kB / 419.2 MB, free: 6.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.3027, allocations: 196.1 kB / 419.4 MB, free: 6.734 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.3027, allocations: 51.58 kB / 419.4 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.3028, allocations: 45.94 kB / 419.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.303, allocations: 339 kB / 419.8 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/0.3034, allocations: 108.3 kB / 419.9 MB, free: 6.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004558/0.3039, allocations: 212.8 kB / 420.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007737/0.3046, allocations: 311.3 kB / 420.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3046, allocations: 0 / 420.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001328/0.306, allocations: 482.8 kB / 420.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.37e-05/0.306, allocations: 33.7 kB / 420.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3061, allocations: 0 / 420.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/0.3065, allocations: 92.8 kB / 421 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.3067, allocations: 43.97 kB / 421.1 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/0.3098, allocations: 2.002 MB / 423.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003836/0.3102, allocations: 55.8 kB / 423.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.3102, allocations: 11.94 kB / 423.1 MB, free: 2.723 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002052/0.3104, allocations: 149.7 kB / 423.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.114e-05/0.3105, allocations: 23.86 kB / 423.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.3105, allocations: 29.89 kB / 423.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3105, allocations: 4 kB / 423.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3105, allocations: 0 / 423.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3106, allocations: 3.984 kB / 423.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003628/0.3109, allocations: 329.3 kB / 423.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3109, allocations: 0 / 423.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.3111, allocations: 19.97 kB / 423.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003061/0.3114, allocations: 84.8 kB / 423.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.3114, allocations: 0 / 423.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002479/0.3139, allocations: 1.805 MB / 425.6 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3139, allocations: 0 / 425.6 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.3151, allocations: 377.5 kB / 425.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.734e-05/0.3152, allocations: 105 kB / 426 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.3153, allocations: 0 / 426 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.3155, allocations: 39.95 kB / 426.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.726e-05/0.3156, allocations: 15.98 kB / 426.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.3156, allocations: 7.938 kB / 426.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002409/0.3159, allocations: 202 kB / 426.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3159, allocations: 0 / 426.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004163/0.3163, allocations: 75.89 kB / 426.4 MB, free: 15.23 MB / 350.1 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) * Number of clocked states: 0 () * 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 (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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001488/0.3178, allocations: 0.9106 MB / 427.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.319, allocations: 445.7 kB / 427.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.319, allocations: 0.6875 kB / 427.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005084/0.3195, allocations: 242.5 kB / 428 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003308/0.3198, allocations: 44.52 kB / 428 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005812/0.3257, allocations: 3.116 MB / 431.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.3261, allocations: 0.7599 MB / 431.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.3262, allocations: 22.3 kB / 431.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3264, allocations: 79.41 kB / 432 MB, free: 9.375 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3264, allocations: 0 / 432 MB, free: 9.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1271/0.4535, allocations: 6.904 MB / 438.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.08, allocations: 4.062 kB / 438.9 MB, free: 2.691 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1)