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.Subtracter.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.Subtracter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001392/0.001392, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.001431, allocations: 198 kB / 18.73 MB, free: 4.336 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.394/1.394, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.002502/0.002502, allocations: 63.89 kB / 358.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3031, allocations: 50.54 MB / 409.1 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005112/0.3083, allocations: 3.391 MB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.3102, allocations: 0.8649 MB / 413.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003532/0.3105, allocations: 7.938 kB / 413.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002728/0.3109, allocations: 67.36 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003778/0.3112, allocations: 115 kB / 413.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004352/0.3117, allocations: 155.8 kB / 413.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006722/0.3124, allocations: 0.4941 MB / 414.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003256/0.3127, allocations: 173 kB / 414.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003735/0.3131, allocations: 191.3 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000325/0.3134, allocations: 199.1 kB / 414.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.39e-05/0.3135, allocations: 48 kB / 414.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001942/0.3137, allocations: 52 kB / 414.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.3139, allocations: 107.6 kB / 414.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003794/0.3143, allocations: 215 kB / 415.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009028/0.3152, allocations: 0.5633 MB / 415.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3152, allocations: 7.938 kB / 415.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3152, allocations: 0 / 415.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.597e-05/0.3152, allocations: 4 kB / 415.7 MB, free: 10.64 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001432/0.3167, allocations: 0.7092 MB / 416.4 MB, free: 9.883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3167, allocations: 8.031 kB / 416.4 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.606e-05/0.3168, allocations: 78.7 kB / 416.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001998/0.317, allocations: 52.66 kB / 416.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.3176, allocations: 328.8 kB / 416.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.3176, allocations: 25.38 kB / 416.9 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.986e-05/0.3177, allocations: 39.94 kB / 417 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/0.3184, allocations: 382.2 kB / 417.3 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.3184, allocations: 3.938 kB / 417.3 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.346e-05/0.3185, allocations: 16 kB / 417.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.3185, allocations: 8 kB / 417.4 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006724/0.3192, allocations: 299.9 kB / 417.7 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.3215, allocations: 1.436 MB / 419.1 MB, free: 7.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006538/0.3222, allocations: 242.7 kB / 419.3 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.3224, allocations: 100.8 kB / 419.4 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.3225, allocations: 0 / 419.4 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.3225, allocations: 42.56 kB / 419.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.122e-06/0.3225, allocations: 0 / 419.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.00225/0.3248, allocations: 0.7588 MB / 420.2 MB, free: 5.871 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.3248, allocations: 55.34 kB / 420.3 MB, free: 5.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003592/0.3252, allocations: 316.5 kB / 420.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.644e-05/0.3253, allocations: 29.7 kB / 420.6 MB, free: 5.457 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.3254, allocations: 236.2 kB / 420.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.855e-05/0.3255, allocations: 55.55 kB / 420.9 MB, free: 5.164 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.705e-05/0.3256, allocations: 49.7 kB / 420.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.3258, allocations: 338.8 kB / 421.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.326, allocations: 79.97 kB / 421.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.3263, allocations: 169.8 kB / 421.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004758/0.3268, allocations: 249.2 kB / 421.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3268, allocations: 0 / 421.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001045/0.3278, allocations: 429.5 kB / 422.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3279, allocations: 4 kB / 422.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3279, allocations: 4 kB / 422.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004916/0.3284, allocations: 113.7 kB / 422.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.3285, allocations: 43.92 kB / 422.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004518/0.3331, allocations: 3.572 MB / 425.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.3333, allocations: 39.77 kB / 426 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.999e-05/0.3334, allocations: 8 kB / 426 MB, free: 15.72 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001826/0.3335, allocations: 153.8 kB / 426.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.185e-05/0.3336, allocations: 35.75 kB / 426.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.602e-05/0.3337, allocations: 34.31 kB / 426.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3337, allocations: 0 / 426.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3337, allocations: 0 / 426.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3337, allocations: 7.938 kB / 426.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004353/0.3342, allocations: 365.3 kB / 426.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3342, allocations: 4 kB / 426.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.474e-05/0.3342, allocations: 11.98 kB / 426.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003638/0.3346, allocations: 117.6 kB / 426.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.3346, allocations: 0 / 426.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003785/0.3384, allocations: 3.476 MB / 430.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.3385, allocations: 3.984 kB / 430.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009405/0.3394, allocations: 432.8 kB / 430.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.3395, allocations: 108.8 kB / 430.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.3396, allocations: 8 kB / 430.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.3398, allocations: 23.98 kB / 430.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.7e-05/0.3399, allocations: 15.97 kB / 430.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.3399, allocations: 7.938 kB / 430.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002563/0.3402, allocations: 223.1 kB / 431 MB, free: 10.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3402, allocations: 4 kB / 431 MB, free: 10.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005073/0.3407, allocations: 99.78 kB / 431.1 MB, free: 10.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001263/0.342, allocations: 0.9668 MB / 432 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.3431, allocations: 0.5167 MB / 432.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3431, allocations: 0 / 432.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000454/0.3436, allocations: 341.8 kB / 432.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.344, allocations: 52.44 kB / 432.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005051/0.3491, allocations: 3.269 MB / 436.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.3495, allocations: 0.7756 MB / 437 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.3496, allocations: 30.97 kB / 437 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.3498, allocations: 99.41 kB / 437.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3498, allocations: 3.938 kB / 437.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03624/0.386, allocations: 7.16 MB / 444.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.24, allocations: 11.95 kB / 444.3 MB, free: 12.94 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1)