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.DifferentialAmplifier.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.DifferentialAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001731/0.001731, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001941/0.001941, allocations: 198 kB / 18.73 MB, free: 4.312 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.487/1.487, allocations: 227.7 MB / 247.2 MB, free: 10.2 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: 67.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2749, allocations: 50.55 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.00613/0.2811, allocations: 4.493 MB / 413.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003046/0.2842, allocations: 1.273 MB / 414.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004157/0.2847, allocations: 15.94 kB / 414.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005302/0.2852, allocations: 138.8 kB / 415 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000528/0.2858, allocations: 206.2 kB / 415.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005862/0.2864, allocations: 215.6 kB / 415.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009829/0.2874, allocations: 0.763 MB / 416.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004723/0.2878, allocations: 270.5 kB / 416.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004624/0.2883, allocations: 286.9 kB / 416.7 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00042/0.2887, allocations: 330.5 kB / 417.1 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.615e-05/0.2889, allocations: 68 kB / 417.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.289, allocations: 68 kB / 417.2 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.2892, allocations: 147.5 kB / 417.3 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003658/0.2896, allocations: 350.2 kB / 417.7 MB, free: 8.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009526/0.2905, allocations: 0.7537 MB / 418.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2905, allocations: 0 / 418.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.2905, allocations: 0 / 418.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.2906, allocations: 3.938 kB / 418.4 MB, free: 8.008 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001891/0.2925, allocations: 0.9814 MB / 419.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.2925, allocations: 12.03 kB / 419.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001113/0.2926, allocations: 98.69 kB / 419.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003012/0.2929, allocations: 96.44 kB / 419.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006491/0.2936, allocations: 430.1 kB / 420 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/0.2936, allocations: 41.69 kB / 420.1 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.658e-05/0.2937, allocations: 56.12 kB / 420.1 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.2948, allocations: 0.5495 MB / 420.7 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.2948, allocations: 4 kB / 420.7 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.74e-05/0.2949, allocations: 20 kB / 420.7 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.2949, allocations: 12 kB / 420.7 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000917/0.2958, allocations: 421 kB / 421.1 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003432/0.2992, allocations: 1.825 MB / 422.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009856/0.3003, allocations: 0.5347 MB / 423.5 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.3014, allocations: 445 kB / 423.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.076e-05/0.3015, allocations: 8.328 kB / 423.9 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006488/0.3021, allocations: 298.2 kB / 424.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 3.125e-06/0.3022, allocations: 0 / 424.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.004506/0.3067, allocations: 1.314 MB / 425.5 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000296/0.307, allocations: 239.3 kB / 425.8 MB, free: 304 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007006/0.3077, allocations: 445.8 kB / 426.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.3078, allocations: 33.7 kB / 426.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/0.3081, allocations: 312.9 kB / 426.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.3082, allocations: 150.7 kB / 426.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.3084, allocations: 90.2 kB / 426.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.3086, allocations: 358.8 kB / 427.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.3089, allocations: 153 kB / 427.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005306/0.3095, allocations: 329.5 kB / 427.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008216/0.3103, allocations: 439.4 kB / 428 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.3103, allocations: 4 kB / 428 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001971/0.3123, allocations: 0.7911 MB / 428.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.3123, allocations: 4 kB / 428.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.3124, allocations: 4 kB / 428.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007917/0.3132, allocations: 219.7 kB / 429 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002978/0.3135, allocations: 75.89 kB / 429.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005473/0.319, allocations: 3.141 MB / 432.3 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006681/0.3197, allocations: 79.59 kB / 432.3 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.129e-05/0.3197, allocations: 23.98 kB / 432.4 MB, free: 9.406 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * 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 {(2,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0003691/0.3201, allocations: 190.2 kB / 432.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.506e-05/0.3202, allocations: 51.67 kB / 432.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.3203, allocations: 56.97 kB / 432.6 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.3203, allocations: 7.984 kB / 432.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3203, allocations: 0 / 432.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3204, allocations: 0 / 432.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002661/0.323, allocations: 1.285 MB / 433.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.323, allocations: 3.938 kB / 433.9 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001776/0.3232, allocations: 31.98 kB / 434 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006704/0.3239, allocations: 216.6 kB / 434.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.3239, allocations: 8 kB / 434.2 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004975/0.3289, allocations: 3.05 MB / 437.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.329, allocations: 0 / 437.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.3311, allocations: 0.9454 MB / 438.2 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/0.3313, allocations: 132.7 kB / 438.3 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.054e-05/0.3314, allocations: 8 kB / 438.3 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003669/0.3318, allocations: 44.03 kB / 438.4 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.56e-05/0.3319, allocations: 35.94 kB / 438.4 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.3319, allocations: 15.94 kB / 438.4 MB, free: 3.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000384/0.3323, allocations: 303.1 kB / 438.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.913e-06/0.3323, allocations: 0 / 438.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006902/0.333, allocations: 191.6 kB / 438.9 MB, free: 2.613 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002459/0.3355, allocations: 1.497 MB / 440.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.3372, allocations: 0.6804 MB / 441.1 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3372, allocations: 0 / 441.1 MB, free: 396 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008477/0.3381, allocations: 437.3 kB / 441.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005681/0.3386, allocations: 77.88 kB / 441.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008505/0.3472, allocations: 4.954 MB / 446.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000591/0.3478, allocations: 0.8668 MB / 447.4 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002277/0.348, allocations: 48.45 kB / 447.5 MB, free: 9.797 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002506/0.3483, allocations: 187.4 kB / 447.6 MB, free: 9.613 MB / 366.1 MB Notification: Performance of SimCode: time 1.583e-06/0.3483, allocations: 0 / 447.6 MB, free: 9.613 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06591/0.4142, allocations: 12.46 MB / 460.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.67, allocations: 17.91 kB / 460.1 MB, free: 13.41 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1)