Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_3_2_3_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.001279/0.001279, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001195/0.001195, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 59.91 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08721, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004404/0.09166, allocations: 3.183 MB / 330.6 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.09352, allocations: 0.9983 MB / 331.6 MB, free: 160 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003417/0.09391, allocations: 4 kB / 331.6 MB, free: 156 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002326/0.09416, allocations: 63.36 kB / 331.6 MB, free: 92 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005177/0.09469, allocations: 119 kB / 331.7 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004321/0.09513, allocations: 155.5 kB / 331.9 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000574/0.09572, allocations: 478.1 kB / 332.4 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/0.09597, allocations: 143.1 kB / 332.5 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002851/0.09627, allocations: 183.3 kB / 332.7 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.09656, allocations: 211.1 kB / 332.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.333e-05/0.09664, allocations: 40 kB / 332.9 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.09683, allocations: 71.97 kB / 333 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.028e-05/0.09691, allocations: 91.67 kB / 333.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002046/0.09713, allocations: 222.9 kB / 333.3 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004895/0.09762, allocations: 498.6 kB / 333.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.09765, allocations: 0 / 333.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.09766, allocations: 4 kB / 333.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.09768, allocations: 0 / 333.8 MB, free: 13.91 MB / 286.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.001386/0.09907, allocations: 0.7325 MB / 334.5 MB, free: 13.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.09912, allocations: 12.03 kB / 334.5 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.674e-05/0.09921, allocations: 66.72 kB / 334.6 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.511e-05/0.09931, allocations: 44.47 kB / 334.7 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.09967, allocations: 307.3 kB / 335 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.0997, allocations: 25.03 kB / 335 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.213e-05/0.09977, allocations: 40.31 kB / 335 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006543/0.1004, allocations: 357.1 kB / 335.4 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1005, allocations: 0 / 335.4 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.1005, allocations: 16 kB / 335.4 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.1005, allocations: 8 kB / 335.4 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004869/0.101, allocations: 230.5 kB / 335.6 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.1029, allocations: 1.182 MB / 336.8 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006383/0.1036, allocations: 279.5 kB / 337.1 MB, free: 10.44 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004817/0.1041, allocations: 209.2 kB / 337.3 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007022/0.1048, allocations: 1.113 MB / 338.4 MB, free: 8.863 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.1048, allocations: 38.8 kB / 338.4 MB, free: 8.816 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.673e-06/0.1048, allocations: 0 / 338.4 MB, free: 8.816 MB / 286.1 MB Notification: Performance of matching and sorting (n=27): time 0.001332/0.1062, allocations: 0.5357 MB / 339 MB, free: 8.254 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.1062, allocations: 81.11 kB / 339 MB, free: 8.156 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003721/0.1066, allocations: 345.6 kB / 339.4 MB, free: 7.812 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/0.1067, allocations: 29.7 kB / 339.4 MB, free: 7.777 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.1068, allocations: 220.1 kB / 339.6 MB, free: 7.559 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.312e-05/0.1069, allocations: 94.56 kB / 339.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.107, allocations: 78 kB / 339.8 MB, free: 7.379 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1071, allocations: 346.7 kB / 340.1 MB, free: 7.031 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002267/0.1074, allocations: 104.7 kB / 340.2 MB, free: 6.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002663/0.1076, allocations: 185.8 kB / 340.4 MB, free: 6.719 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004906/0.1081, allocations: 295.1 kB / 340.7 MB, free: 6.402 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.1082, allocations: 4 kB / 340.7 MB, free: 6.398 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008157/0.109, allocations: 437.3 kB / 341.1 MB, free: 5.961 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.109, allocations: 4 kB / 341.1 MB, free: 5.957 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.109, allocations: 4 kB / 341.1 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000264/0.1093, allocations: 68.75 kB / 341.2 MB, free: 5.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000333/0.1096, allocations: 75.89 kB / 341.3 MB, free: 5.809 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.1115, allocations: 1.951 MB / 343.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.1118, allocations: 39.53 kB / 343.3 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.014e-05/0.1118, allocations: 20.05 kB / 343.3 MB, free: 3.664 MB / 286.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.0001904/0.112, allocations: 153.7 kB / 343.4 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.595e-05/0.1121, allocations: 31.62 kB / 343.5 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007334/0.1129, allocations: 334.2 kB / 343.8 MB, free: 3.133 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1129, allocations: 4 kB / 343.8 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1129, allocations: 7.938 kB / 343.8 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.1129, allocations: 4.188 kB / 343.8 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004623/0.1134, allocations: 389.2 kB / 344.2 MB, free: 2.688 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.1134, allocations: 3.938 kB / 344.2 MB, free: 2.684 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003401/0.1137, allocations: 59.95 kB / 344.3 MB, free: 2.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002025/0.1139, allocations: 60.91 kB / 344.3 MB, free: 2.562 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.969e-05/0.114, allocations: 11.92 kB / 344.3 MB, free: 2.551 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004219/0.1144, allocations: 0.6069 MB / 344.9 MB, free: 1.918 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1144, allocations: 0 / 344.9 MB, free: 1.918 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009078/0.1153, allocations: 0.521 MB / 345.5 MB, free: 1.379 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.1155, allocations: 128.6 kB / 345.6 MB, free: 1.234 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.919e-05/0.1156, allocations: 11.98 kB / 345.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002728/0.1158, allocations: 19.98 kB / 345.6 MB, free: 1.203 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/0.1159, allocations: 19.98 kB / 345.6 MB, free: 1.184 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.1159, allocations: 7.984 kB / 345.6 MB, free: 1.176 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002398/0.1162, allocations: 243.2 kB / 345.9 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1162, allocations: 0 / 345.9 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004721/0.1167, allocations: 103.8 kB / 346 MB, free: 0.8398 MB / 286.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.001301/0.118, allocations: 1.096 MB / 347.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008774/0.1189, allocations: 426.3 kB / 347.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1189, allocations: 0 / 347.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003501/0.1192, allocations: 139.9 kB / 347.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004518/0.1197, allocations: 33.38 kB / 347.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005112/0.1248, allocations: 3.822 MB / 351.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.1252, allocations: 0.7912 MB / 352.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001676/0.1254, allocations: 30.97 kB / 352.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.1256, allocations: 127.4 kB / 352.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1256, allocations: 0 / 352.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0301/0.1557, allocations: 7.576 MB / 360 MB, free: 2.543 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.61, allocations: 8.781 kB / 360 MB, free: 2.535 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1)