Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 45.7 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08949/0.09056, allocations: 49.45 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.005061/0.09567, allocations: 3.21 MB / 353.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001861/0.09756, allocations: 0.9701 MB / 354.3 MB, free: 124 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002921/0.09788, allocations: 4 kB / 354.3 MB, free: 120 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.09813, allocations: 55.42 kB / 354.4 MB, free: 64 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004716/0.09862, allocations: 128.4 kB / 354.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000408/0.09903, allocations: 147.7 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005417/0.09959, allocations: 493.8 kB / 355.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.09984, allocations: 127.1 kB / 355.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.1002, allocations: 191.3 kB / 355.5 MB, free: 15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003578/0.1005, allocations: 211.1 kB / 355.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.552e-05/0.1006, allocations: 40 kB / 355.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.1008, allocations: 71.97 kB / 355.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.627e-05/0.1009, allocations: 99.59 kB / 355.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.1012, allocations: 207 kB / 356.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004956/0.1017, allocations: 498.5 kB / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1017, allocations: 0 / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1017, allocations: 0 / 356.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1018, allocations: 0 / 356.6 MB, free: 13.89 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00138/0.1031, allocations: 0.7467 MB / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1032, allocations: 8.031 kB / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.308e-05/0.1033, allocations: 70.72 kB / 357.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.487e-05/0.1034, allocations: 40.47 kB / 357.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003758/0.1038, allocations: 307.3 kB / 357.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.1038, allocations: 25.03 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.019e-05/0.1039, allocations: 40.31 kB / 357.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006413/0.1045, allocations: 353.2 kB / 358.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.1045, allocations: 3.938 kB / 358.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.699e-05/0.1046, allocations: 12 kB / 358.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.1046, allocations: 11.94 kB / 358.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005186/0.1051, allocations: 234.5 kB / 358.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/0.1072, allocations: 1.17 MB / 359.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006703/0.1079, allocations: 283.5 kB / 359.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005038/0.1084, allocations: 213.2 kB / 360.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009288/0.1093, allocations: 1.121 MB / 361.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.1094, allocations: 38.73 kB / 361.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.653e-06/0.1094, allocations: 0 / 361.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.001399/0.1108, allocations: 0.5312 MB / 361.7 MB, free: 8.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.1108, allocations: 81.11 kB / 361.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000354/0.1112, allocations: 336.5 kB / 362.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.1112, allocations: 29.7 kB / 362.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.1114, allocations: 208.2 kB / 362.4 MB, free: 7.543 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.986e-05/0.1115, allocations: 106.5 kB / 362.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.1116, allocations: 69.98 kB / 362.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1117, allocations: 350.7 kB / 362.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.112, allocations: 104.7 kB / 363 MB, free: 6.906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000285/0.1123, allocations: 189.7 kB / 363.2 MB, free: 6.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005619/0.1128, allocations: 288 kB / 363.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1128, allocations: 0 / 363.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009388/0.1138, allocations: 433.1 kB / 363.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1138, allocations: 4 kB / 363.9 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1138, allocations: 4.25 kB / 363.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002658/0.1141, allocations: 68.81 kB / 364 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.1144, allocations: 75.84 kB / 364 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.1165, allocations: 1.955 MB / 366 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.1168, allocations: 39.67 kB / 366 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.1169, allocations: 16 kB / 366 MB, free: 3.652 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 36 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001692/0.117, allocations: 157.7 kB / 366.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.1172, allocations: 39.52 kB / 366.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008003/0.118, allocations: 326.5 kB / 366.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.118, allocations: 4 kB / 366.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.118, allocations: 3.938 kB / 366.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.118, allocations: 0 / 366.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004498/0.1185, allocations: 397.2 kB / 367 MB, free: 2.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.1185, allocations: 3.984 kB / 367 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.1189, allocations: 55.91 kB / 367 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.1191, allocations: 60.81 kB / 367.1 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.1191, allocations: 8 kB / 367.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004224/0.1195, allocations: 0.6147 MB / 367.7 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1195, allocations: 0 / 367.7 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009277/0.1205, allocations: 0.5159 MB / 368.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.1206, allocations: 108.7 kB / 368.3 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.562e-05/0.1207, allocations: 8 kB / 368.3 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002964/0.121, allocations: 19.98 kB / 368.3 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.258e-05/0.121, allocations: 19.97 kB / 368.4 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.1211, allocations: 4 kB / 368.4 MB, free: 1.191 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003463/0.1214, allocations: 247 kB / 368.6 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1214, allocations: 0 / 368.6 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004566/0.1219, allocations: 103.8 kB / 368.7 MB, free: 0.8477 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * 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 (20): * Single equations (assignments): 19 * 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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1388/0.2607, allocations: 1.083 MB / 369.8 MB, free: 25.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009841/0.2617, allocations: 422 kB / 370.2 MB, free: 25.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.2617, allocations: 0.6875 kB / 370.2 MB, free: 25.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003542/0.2621, allocations: 153.8 kB / 370.4 MB, free: 25.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.2625, allocations: 47.91 kB / 370.4 MB, free: 25.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/0.267, allocations: 3.785 MB / 374.2 MB, free: 23.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.2672, allocations: 0.7931 MB / 375 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001582/0.2674, allocations: 40.5 kB / 375 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.2675, allocations: 128.3 kB / 375.1 MB, free: 22.6 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2675, allocations: 0 / 375.1 MB, free: 22.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.2983, allocations: 7.567 MB / 382.7 MB, free: 20.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.72, allocations: 14.28 kB / 382.7 MB, free: 20.95 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv --start-time 0 --stop-time 0.003 --timeout 50 --relative-tolerance 2e-07 --interface-type ModelExchange --solver CVode --output-interval 1.2e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1)