Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.001566/0.001566, allocations: 104 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.001564/0.001564, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.488/1.488, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001426/0.001427, allocations: 52.56 kB / 280.7 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/0.09311, allocations: 46.64 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007489/0.1006, allocations: 5.7 MB / 333.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003996/0.1047, allocations: 1.453 MB / 334.5 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009409/0.1057, allocations: 16 kB / 334.6 MB, free: 13.15 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005905/0.1063, allocations: 158.4 kB / 334.7 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001191/0.1075, allocations: 273.4 kB / 335 MB, free: 12.72 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.1087, allocations: 359.4 kB / 335.3 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001583/0.1103, allocations: 1.23 MB / 336.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006583/0.111, allocations: 417 kB / 337 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007119/0.1117, allocations: 462.5 kB / 337.4 MB, free: 10.26 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005781/0.1123, allocations: 0.5252 MB / 337.9 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.1124, allocations: 128 kB / 338.1 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002722/0.1127, allocations: 160 kB / 338.2 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000208/0.1129, allocations: 255.2 kB / 338.5 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004953/0.1134, allocations: 0.5328 MB / 339 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.1147, allocations: 1.394 MB / 340.4 MB, free: 7.266 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1147, allocations: 0 / 340.4 MB, free: 7.266 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1147, allocations: 4 kB / 340.4 MB, free: 7.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.1148, allocations: 0 / 340.4 MB, free: 7.262 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002507/0.1173, allocations: 1.29 MB / 341.7 MB, free: 5.918 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.1173, allocations: 12.03 kB / 341.7 MB, free: 5.906 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001555/0.1175, allocations: 123.2 kB / 341.8 MB, free: 5.777 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.1177, allocations: 107.7 kB / 341.9 MB, free: 5.672 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006998/0.1184, allocations: 0.5051 MB / 342.4 MB, free: 5.125 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.277e-05/0.1185, allocations: 62.38 kB / 342.5 MB, free: 5.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.1186, allocations: 92.22 kB / 342.6 MB, free: 4.977 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.1201, allocations: 0.8806 MB / 343.5 MB, free: 4.078 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1202, allocations: 0 / 343.5 MB, free: 4.078 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-05/0.1202, allocations: 32 kB / 343.5 MB, free: 4.047 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.1203, allocations: 16 kB / 343.5 MB, free: 4.031 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.1218, allocations: 0.7847 MB / 344.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004986/0.1268, allocations: 3.053 MB / 347.3 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.1279, allocations: 0.6462 MB / 348 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006708/0.1286, allocations: 414.3 kB / 348.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.363e-05/0.1287, allocations: 16.45 kB / 348.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.1287, allocations: 43.12 kB / 348.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 3.085e-06/0.1287, allocations: 3.938 kB / 348.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004643/0.1334, allocations: 2.189 MB / 350.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.1334, allocations: 68.06 kB / 350.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005562/0.134, allocations: 0.4989 MB / 351.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.408e-05/0.1341, allocations: 41.7 kB / 351.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.1343, allocations: 391.5 kB / 351.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.1345, allocations: 252.4 kB / 351.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.1347, allocations: 134.6 kB / 352 MB, free: 11.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1349, allocations: 374.8 kB / 352.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006475/0.1355, allocations: 313.9 kB / 352.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007491/0.1363, allocations: 421.1 kB / 353.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.1377, allocations: 0.7467 MB / 353.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.1377, allocations: 0 / 353.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002076/0.1398, allocations: 1.036 MB / 354.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.1398, allocations: 8 kB / 354.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.1398, allocations: 7.938 kB / 354.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000576/0.1404, allocations: 184.6 kB / 355.1 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007923/0.1412, allocations: 187.8 kB / 355.3 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00373/0.145, allocations: 2.871 MB / 358.1 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006674/0.1457, allocations: 36.03 kB / 358.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.457e-05/0.1458, allocations: 24 kB / 358.2 MB, free: 4.887 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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 {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003936/0.1462, allocations: 225.8 kB / 358.4 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.1463, allocations: 67.25 kB / 358.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.1465, allocations: 86.17 kB / 358.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.1465, allocations: 11.94 kB / 358.6 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/0.1465, allocations: 0 / 358.6 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.1466, allocations: 7.984 kB / 358.6 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.1478, allocations: 0.826 MB / 359.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.1478, allocations: 7.938 kB / 359.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007411/0.1485, allocations: 143.8 kB / 359.6 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005682/0.1491, allocations: 186.6 kB / 359.7 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.848e-05/0.1492, allocations: 23.98 kB / 359.8 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00402/0.1532, allocations: 2.858 MB / 362.6 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1533, allocations: 4 kB / 362.6 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002741/0.156, allocations: 1.388 MB / 364 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/0.1563, allocations: 132.6 kB / 364.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/0.1564, allocations: 19.94 kB / 364.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007553/0.1572, allocations: 59.95 kB / 364.2 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.1574, allocations: 48.53 kB / 364.3 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.77e-05/0.1575, allocations: 27.97 kB / 364.3 MB, free: 14.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004744/0.158, allocations: 355 kB / 364.6 MB, free: 14.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.158, allocations: 0 / 364.6 MB, free: 14.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009651/0.159, allocations: 223.9 kB / 364.9 MB, free: 13.97 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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 (56): * Single equations (assignments): 55 * 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 {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003316/0.1623, allocations: 1.96 MB / 366.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002696/0.165, allocations: 1.029 MB / 367.8 MB, free: 10.94 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.1651, allocations: 0 / 367.8 MB, free: 10.94 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001517/0.1666, allocations: 0.6277 MB / 368.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.1677, allocations: 138.3 kB / 368.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/0.1801, allocations: 7.091 MB / 375.7 MB, free: 2.895 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007149/0.1809, allocations: 0.9616 MB / 376.7 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004625/0.1814, allocations: 81.05 kB / 376.7 MB, free: 1.828 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004665/0.1818, allocations: 291.3 kB / 377 MB, free: 1.547 MB / 318.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1819, allocations: 0 / 377 MB, free: 1.547 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.218/0.3998, allocations: 17.23 MB / 394.3 MB, free: 48.62 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.14/10.54, allocations: 8.562 kB / 394.3 MB, free: 48.62 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)