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.001846/0.001845, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002091/0.002091, allocations: 214.4 kB / 18.59 MB, free: 4.402 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.549/1.549, allocations: 227.7 MB / 247 MB, free: 10.3 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.002236/0.002236, allocations: 68.02 kB / 307.3 MB, free: 392 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1127, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.007067/0.1198, allocations: 4.48 MB / 362.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003163/0.123, allocations: 1.289 MB / 363.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006486/0.1237, allocations: 12 kB / 363.7 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005715/0.1243, allocations: 142.7 kB / 363.8 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00066/0.125, allocations: 206.2 kB / 364 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000639/0.1256, allocations: 211.6 kB / 364.2 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008933/0.1265, allocations: 0.759 MB / 365 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004715/0.127, allocations: 270.5 kB / 365.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004419/0.1274, allocations: 298.9 kB / 365.5 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004243/0.1279, allocations: 330.5 kB / 365.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.128, allocations: 64 kB / 365.9 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.1282, allocations: 68 kB / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.1284, allocations: 147.4 kB / 366.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003592/0.1287, allocations: 350.2 kB / 366.5 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007937/0.1295, allocations: 0.7398 MB / 367.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.1295, allocations: 4 kB / 367.2 MB, free: 4.449 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1295, allocations: 0 / 367.2 MB, free: 4.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1296, allocations: 0 / 367.2 MB, free: 4.449 MB / 302.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.00191/0.1315, allocations: 0.9625 MB / 368.2 MB, free: 3.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/0.1315, allocations: 8.031 kB / 368.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.1317, allocations: 98.7 kB / 368.3 MB, free: 3.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004543/0.1322, allocations: 92.06 kB / 368.4 MB, free: 3.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009001/0.1331, allocations: 421.7 kB / 368.8 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.137e-05/0.1331, allocations: 41.69 kB / 368.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.1333, allocations: 52.38 kB / 368.9 MB, free: 2.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.1348, allocations: 0.5572 MB / 369.4 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1348, allocations: 0 / 369.4 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.838e-05/0.1349, allocations: 20 kB / 369.5 MB, free: 2.102 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.1349, allocations: 16 kB / 369.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.1363, allocations: 421 kB / 369.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2494/0.3858, allocations: 1.826 MB / 371.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009488/0.3867, allocations: 0.5214 MB / 372.2 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.3878, allocations: 425.2 kB / 372.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.458e-05/0.3878, allocations: 8.734 kB / 372.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005247/0.3884, allocations: 297.4 kB / 372.9 MB, free: 19.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.844e-06/0.3884, allocations: 0 / 372.9 MB, free: 19.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.004422/0.3928, allocations: 1.32 MB / 374.3 MB, free: 18.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.978e-05/0.3929, allocations: 249.2 kB / 374.5 MB, free: 18.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006771/0.3936, allocations: 436.7 kB / 374.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.74e-05/0.3937, allocations: 32.2 kB / 375 MB, free: 18.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.3939, allocations: 311 kB / 375.3 MB, free: 18.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.394, allocations: 143.8 kB / 375.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.3942, allocations: 89.77 kB / 375.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3943, allocations: 361.2 kB / 375.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/0.3947, allocations: 150.4 kB / 376 MB, free: 17.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/0.3951, allocations: 323.1 kB / 376.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000788/0.3959, allocations: 444.9 kB / 376.7 MB, free: 17.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3959, allocations: 0 / 376.7 MB, free: 17.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001785/0.3977, allocations: 0.7891 MB / 377.5 MB, free: 16.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.3978, allocations: 6.375 kB / 377.5 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3978, allocations: 3.75 kB / 377.5 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007282/0.3985, allocations: 214.5 kB / 377.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/0.3988, allocations: 76.06 kB / 377.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004593/0.4034, allocations: 3.132 MB / 381 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005633/0.404, allocations: 80.06 kB / 381 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.4041, allocations: 20.06 kB / 381.1 MB, free: 14.67 MB / 302.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.0002254/0.4043, allocations: 183.6 kB / 381.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.748e-05/0.4044, allocations: 54.36 kB / 381.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.764e-05/0.4045, allocations: 57.83 kB / 381.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.4045, allocations: 4.469 kB / 381.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4045, allocations: 0 / 381.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.4045, allocations: 3.312 kB / 381.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.4067, allocations: 1.285 MB / 382.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.4067, allocations: 8.625 kB / 382.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.4069, allocations: 36.33 kB / 382.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006418/0.4076, allocations: 216 kB / 382.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.4076, allocations: 11.47 kB / 382.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003924/0.4115, allocations: 3.049 MB / 386 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4116, allocations: 0.5625 kB / 386 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.4135, allocations: 0.9321 MB / 386.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.4137, allocations: 130 kB / 387 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.423e-05/0.4137, allocations: 10.64 kB / 387 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003716/0.4141, allocations: 47.8 kB / 387.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.642e-05/0.4142, allocations: 34.64 kB / 387.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.4143, allocations: 13.62 kB / 387.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003313/0.4146, allocations: 301.2 kB / 387.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4146, allocations: 3.938 kB / 387.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006881/0.4153, allocations: 191.3 kB / 387.6 MB, free: 10.79 MB / 302.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.002096/0.4174, allocations: 1.498 MB / 389.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.4191, allocations: 0.6804 MB / 389.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.4191, allocations: 0 / 389.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007384/0.4198, allocations: 433.4 kB / 390.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005681/0.4204, allocations: 75.92 kB / 390.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007535/0.428, allocations: 5.082 MB / 395.4 MB, free: 6.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.4283, allocations: 0.8672 MB / 396.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002615/0.4286, allocations: 59.41 kB / 396.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.4288, allocations: 183.1 kB / 396.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4288, allocations: 0 / 396.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.049/0.4778, allocations: 12.21 MB / 408.7 MB, free: 11.22 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.62, allocations: 14.34 kB / 408.7 MB, free: 11.21 MB / 318.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)