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.001785/0.001785, allocations: 122.2 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.002194/0.002194, 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.428/1.428, 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.001883/0.001883, allocations: 63.91 kB / 358.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2894, allocations: 50.54 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.006739/0.2961, allocations: 4.497 MB / 413.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00313/0.2993, allocations: 1.273 MB / 414.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006718/0.3001, allocations: 11.94 kB / 414.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006479/0.3007, allocations: 150.7 kB / 415 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009255/0.3017, allocations: 194.2 kB / 415.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008067/0.3025, allocations: 223.5 kB / 415.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.3036, allocations: 0.7591 MB / 416.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004722/0.3041, allocations: 270.5 kB / 416.5 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004445/0.3045, allocations: 294.9 kB / 416.8 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004295/0.305, allocations: 326.5 kB / 417.1 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.3051, allocations: 64 kB / 417.1 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.3052, allocations: 72 kB / 417.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.3054, allocations: 155.4 kB / 417.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003331/0.3057, allocations: 346.3 kB / 417.7 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008408/0.3066, allocations: 0.7459 MB / 418.4 MB, free: 7.992 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3066, allocations: 4 kB / 418.4 MB, free: 7.988 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3066, allocations: 0 / 418.4 MB, free: 7.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.3066, allocations: 0 / 418.4 MB, free: 7.988 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.00185/0.3085, allocations: 0.9891 MB / 419.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.3086, allocations: 8.031 kB / 419.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.3087, allocations: 98.64 kB / 419.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003319/0.309, allocations: 96.44 kB / 419.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006106/0.3096, allocations: 426.2 kB / 420.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.3097, allocations: 45.62 kB / 420.1 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.3098, allocations: 60.12 kB / 420.2 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.3108, allocations: 0.5417 MB / 420.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.3109, allocations: 0 / 420.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.829e-05/0.3109, allocations: 35.98 kB / 420.7 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.311, allocations: 12 kB / 420.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008692/0.3118, allocations: 417 kB / 421.2 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00302/0.3149, allocations: 1.829 MB / 423 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008529/0.3157, allocations: 0.5309 MB / 423.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/0.3168, allocations: 441.1 kB / 423.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.3169, allocations: 4.328 kB / 423.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005585/0.3174, allocations: 306.1 kB / 424.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.844e-06/0.3174, allocations: 0 / 424.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.004279/0.3217, allocations: 1.31 MB / 425.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001776/0.3219, allocations: 235.3 kB / 425.8 MB, free: 284 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006162/0.3225, allocations: 445.9 kB / 426.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.247e-05/0.3226, allocations: 37.7 kB / 426.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002628/0.3229, allocations: 312.8 kB / 426.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.323, allocations: 150.7 kB / 426.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.3232, allocations: 90.2 kB / 426.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3234, allocations: 354.8 kB / 427.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003477/0.3237, allocations: 157 kB / 427.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004876/0.3242, allocations: 325.5 kB / 427.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008176/0.325, allocations: 443.4 kB / 428 MB, free: 13.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.325, allocations: 3.938 kB / 428.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001908/0.327, allocations: 0.7873 MB / 428.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.327, allocations: 8 kB / 428.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.327, allocations: 4 kB / 428.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007699/0.3278, allocations: 215.8 kB / 429.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.3281, allocations: 79.88 kB / 429.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005137/0.3332, allocations: 3.134 MB / 432.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005273/0.3338, allocations: 79.59 kB / 432.3 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.325e-05/0.3338, allocations: 23.98 kB / 432.4 MB, free: 9.387 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.0002735/0.3341, allocations: 190.2 kB / 432.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.557e-05/0.3342, allocations: 55.67 kB / 432.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.3343, allocations: 56.97 kB / 432.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3343, allocations: 4 kB / 432.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3343, allocations: 7.938 kB / 432.7 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.3343, allocations: 3.984 kB / 432.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002348/0.3367, allocations: 1.285 MB / 434 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3367, allocations: 4 kB / 434 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.3369, allocations: 27.98 kB / 434 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006378/0.3375, allocations: 220.6 kB / 434.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.777e-05/0.3376, allocations: 8 kB / 434.2 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004558/0.3421, allocations: 3.054 MB / 437.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3422, allocations: 0 / 437.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.3442, allocations: 0.9376 MB / 438.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.3443, allocations: 132.7 kB / 438.3 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.396e-05/0.3444, allocations: 8 kB / 438.4 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.3448, allocations: 44.03 kB / 438.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.451e-05/0.3449, allocations: 31.95 kB / 438.4 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.3449, allocations: 15.92 kB / 438.4 MB, free: 3.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003639/0.3453, allocations: 307.1 kB / 438.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3453, allocations: 0 / 438.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006759/0.346, allocations: 191.7 kB / 438.9 MB, free: 2.586 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.002429/0.3484, allocations: 1.497 MB / 440.4 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.3501, allocations: 0.6765 MB / 441.1 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3501, allocations: 0 / 441.1 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007804/0.3509, allocations: 429.3 kB / 441.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005141/0.3514, allocations: 89.8 kB / 441.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008102/0.3595, allocations: 4.954 MB / 446.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000552/0.3601, allocations: 0.8629 MB / 447.4 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.3603, allocations: 48.62 kB / 447.5 MB, free: 9.773 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002438/0.3606, allocations: 191.4 kB / 447.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3606, allocations: 0 / 447.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04332/0.4039, allocations: 12.47 MB / 460.1 MB, free: 13.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.39, allocations: 14.97 kB / 460.1 MB, free: 13.38 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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)