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.001904/0.001904, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.002472/0.002472, allocations: 191.9 kB / 18.51 MB, free: 4.512 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.781/1.781, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001632/0.001632, allocations: 56.14 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1417, allocations: 46.64 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.009503/0.1513, allocations: 5.696 MB / 333.1 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003891/0.1552, allocations: 1.453 MB / 334.5 MB, free: 13.19 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009692/0.1562, allocations: 15.94 kB / 334.5 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007946/0.1571, allocations: 158.4 kB / 334.7 MB, free: 13.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001505/0.1586, allocations: 273.4 kB / 335 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.16, allocations: 355.4 kB / 335.3 MB, free: 12.4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002457/0.1625, allocations: 1.234 MB / 336.6 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009041/0.1634, allocations: 421 kB / 337 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001174/0.1646, allocations: 462.5 kB / 337.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/0.1657, allocations: 0.5175 MB / 337.9 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004103/0.1661, allocations: 124 kB / 338.1 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005019/0.1666, allocations: 172 kB / 338.2 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002662/0.1669, allocations: 251.2 kB / 338.5 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007062/0.1676, allocations: 0.5367 MB / 339 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001705/0.1693, allocations: 1.406 MB / 340.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.14e-05/0.1693, allocations: 0 / 340.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.678e-06/0.1694, allocations: 0 / 340.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.936e-05/0.1694, allocations: 0 / 340.4 MB, free: 7.273 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.003059/0.1725, allocations: 1.278 MB / 341.7 MB, free: 5.941 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.957e-05/0.1725, allocations: 16.02 kB / 341.7 MB, free: 5.926 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001644/0.1727, allocations: 127.2 kB / 341.8 MB, free: 5.793 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001959/0.1729, allocations: 107.7 kB / 341.9 MB, free: 5.688 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006991/0.1736, allocations: 0.5051 MB / 342.4 MB, free: 5.141 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.997e-05/0.1737, allocations: 62.38 kB / 342.5 MB, free: 5.082 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.1738, allocations: 84.28 kB / 342.6 MB, free: 5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.1754, allocations: 0.8767 MB / 343.5 MB, free: 4.105 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.1754, allocations: 4 kB / 343.5 MB, free: 4.102 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.509e-05/0.1755, allocations: 36 kB / 343.5 MB, free: 4.066 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.1755, allocations: 20 kB / 343.5 MB, free: 4.047 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001557/0.1771, allocations: 0.7808 MB / 344.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00517/0.1823, allocations: 3.053 MB / 347.3 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.1835, allocations: 0.6423 MB / 348 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007122/0.1843, allocations: 418.3 kB / 348.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.545e-05/0.1844, allocations: 12.55 kB / 348.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.298e-05/0.1844, allocations: 43.03 kB / 348.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 3.256e-06/0.1844, allocations: 0 / 348.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004604/0.189, allocations: 2.197 MB / 350.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.1891, allocations: 64 kB / 350.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000609/0.1897, allocations: 0.5067 MB / 351.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.333e-05/0.1898, allocations: 37.7 kB / 351.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/0.1901, allocations: 387.5 kB / 351.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.1903, allocations: 252.4 kB / 351.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/0.1905, allocations: 138.6 kB / 352 MB, free: 11.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1907, allocations: 374.8 kB / 352.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005882/0.1913, allocations: 309.9 kB / 352.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006772/0.192, allocations: 429.1 kB / 353.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.1933, allocations: 0.7389 MB / 353.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1933, allocations: 0 / 353.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002038/0.1954, allocations: 1.04 MB / 354.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.1954, allocations: 8 kB / 354.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.1954, allocations: 7.938 kB / 354.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005777/0.196, allocations: 184.5 kB / 355.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008074/0.1968, allocations: 191.7 kB / 355.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003913/0.2008, allocations: 2.869 MB / 358.1 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006672/0.2014, allocations: 32.03 kB / 358.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.672e-05/0.2015, allocations: 27.98 kB / 358.2 MB, free: 4.902 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.0003821/0.2019, allocations: 229.7 kB / 358.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.202, allocations: 67.25 kB / 358.5 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.2022, allocations: 86.17 kB / 358.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.2022, allocations: 11.94 kB / 358.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.65e-05/0.2022, allocations: 4 kB / 358.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.2023, allocations: 3.984 kB / 358.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.2033, allocations: 0.8299 MB / 359.4 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.2033, allocations: 4 kB / 359.4 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006916/0.204, allocations: 147.8 kB / 359.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005057/0.2045, allocations: 168.7 kB / 359.7 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.452e-05/0.2046, allocations: 27.97 kB / 359.8 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003707/0.2083, allocations: 2.869 MB / 362.6 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.2083, allocations: 0 / 362.6 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.2111, allocations: 1.381 MB / 364 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.2113, allocations: 132.3 kB / 364.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.2114, allocations: 20.19 kB / 364.2 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005875/0.212, allocations: 63.95 kB / 364.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.2122, allocations: 48.52 kB / 364.3 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.949e-05/0.2123, allocations: 28.08 kB / 364.3 MB, free: 14.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004728/0.2128, allocations: 358.8 kB / 364.6 MB, free: 14.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2128, allocations: 0 / 364.6 MB, free: 14.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008555/0.2136, allocations: 224.2 kB / 364.9 MB, free: 13.98 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.003208/0.2168, allocations: 1.96 MB / 366.8 MB, free: 11.99 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.2196, allocations: 1.025 MB / 367.8 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2196, allocations: 0 / 367.8 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.2211, allocations: 0.6316 MB / 368.5 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007538/0.2218, allocations: 134.3 kB / 368.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/0.2334, allocations: 7.095 MB / 375.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.2339, allocations: 0.9539 MB / 376.7 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004347/0.2344, allocations: 81.05 kB / 376.7 MB, free: 1.848 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004149/0.2348, allocations: 295.3 kB / 377 MB, free: 1.562 MB / 318.1 MB Notification: Performance of SimCode: time 1.313e-06/0.2348, allocations: 0 / 377 MB, free: 1.562 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2628/0.4976, allocations: 17.23 MB / 394.3 MB, free: 48.6 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.1, allocations: 10.89 kB / 394.3 MB, free: 48.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)