Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_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.001211/0.001211, allocations: 98.48 kB / 16.3 MB, free: 5.594 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.00126/0.00126, allocations: 182.1 kB / 17.19 MB, free: 5.531 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.492/1.492, allocations: 223.2 MB / 241.1 MB, free: 5.234 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002863/0.0002866, allocations: 6.469 kB / 300.8 MB, free: 5.535 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1309, allocations: 50.42 MB / 351.2 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006666/0.1376, allocations: 4.838 MB / 356.1 MB, free: 6.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003324/0.1409, allocations: 1.541 MB / 357.6 MB, free: 4.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007593/0.1417, allocations: 19.94 kB / 357.6 MB, free: 4.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002617/0.142, allocations: 115.1 kB / 357.7 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007006/0.1427, allocations: 347 kB / 358.1 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007326/0.1435, allocations: 267.5 kB / 358.3 MB, free: 4.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.1446, allocations: 0.8749 MB / 359.2 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005079/0.1451, allocations: 304.5 kB / 359.5 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000534/0.1457, allocations: 402.6 kB / 359.9 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005571/0.1463, allocations: 489.9 kB / 360.4 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.1464, allocations: 56 kB / 360.4 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002193/0.1466, allocations: 83.97 kB / 360.5 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001772/0.1468, allocations: 187.3 kB / 360.7 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.147, allocations: 221.1 kB / 360.9 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.1482, allocations: 1.149 MB / 362.1 MB, free: 440 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.1482, allocations: 0 / 362.1 MB, free: 440 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1482, allocations: 0 / 362.1 MB, free: 440 kB / 286.1 MB Notification: Performance of Transformations before backend: time 2.863e-05/0.1482, allocations: 0 / 362.1 MB, free: 440 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002806/0.1511, allocations: 1.231 MB / 363.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/0.1511, allocations: 8.031 kB / 363.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001869/0.1513, allocations: 139.5 kB / 363.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002458/0.1516, allocations: 110.7 kB / 363.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009423/0.1525, allocations: 0.5179 MB / 364.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.1527, allocations: 69.98 kB / 364.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.1529, allocations: 99.89 kB / 364.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.1545, allocations: 0.8506 MB / 365.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.1546, allocations: 0 / 365.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.014e-05/0.1547, allocations: 43.94 kB / 365.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.505e-05/0.1547, allocations: 20 kB / 365.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.1564, allocations: 0.8707 MB / 366 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006127/0.1626, allocations: 3.278 MB / 369.3 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.1637, allocations: 0.6758 MB / 370 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.071e-05/0.1638, allocations: 12.5 kB / 370 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.1639, allocations: 47.12 kB / 370 MB, free: 8.207 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.384e-06/0.1639, allocations: 4 kB / 370 MB, free: 8.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004781/0.1686, allocations: 2.31 MB / 372.3 MB, free: 5.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.1687, allocations: 64.06 kB / 372.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007061/0.1694, allocations: 0.6017 MB / 373 MB, free: 5.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.118e-05/0.1695, allocations: 41.7 kB / 373 MB, free: 5.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003113/0.1698, allocations: 439.2 kB / 373.5 MB, free: 4.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.17, allocations: 256.3 kB / 373.7 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/0.1701, allocations: 24 kB / 373.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.1703, allocations: 390.7 kB / 374.1 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00068/0.171, allocations: 329.9 kB / 374.5 MB, free: 3.691 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007492/0.1717, allocations: 476.6 kB / 374.9 MB, free: 3.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007213/0.1724, allocations: 398.9 kB / 375.3 MB, free: 2.785 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1725, allocations: 0 / 375.3 MB, free: 2.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002166/0.1746, allocations: 1.134 MB / 376.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.1747, allocations: 8 kB / 376.4 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.1747, allocations: 8 kB / 376.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005837/0.1753, allocations: 194.9 kB / 376.6 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008787/0.1762, allocations: 203.8 kB / 376.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003864/0.18, allocations: 2.695 MB / 379.5 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008104/0.1809, allocations: 40.05 kB / 379.6 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-05/0.181, allocations: 35.98 kB / 379.6 MB, free: 14.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004643/0.1814, allocations: 229.7 kB / 379.8 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.1816, allocations: 79.06 kB / 379.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.1818, allocations: 91.27 kB / 380 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.1818, allocations: 7.984 kB / 380 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/0.1818, allocations: 11.89 kB / 380 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1818, allocations: 4 kB / 380 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.1832, allocations: 0.8846 MB / 380.9 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.1833, allocations: 0 / 380.9 MB, free: 12.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008677/0.1841, allocations: 151.8 kB / 381.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005386/0.1847, allocations: 184.6 kB / 381.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/0.1847, allocations: 19.98 kB / 381.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003726/0.1885, allocations: 2.705 MB / 384 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1885, allocations: 0 / 384 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002616/0.1911, allocations: 1.459 MB / 385.4 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002108/0.1914, allocations: 152.1 kB / 385.6 MB, free: 8.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.1915, allocations: 16 kB / 385.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006174/0.1921, allocations: 63.95 kB / 385.7 MB, free: 8.062 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.1922, allocations: 52.58 kB / 385.7 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-05/0.1923, allocations: 23.98 kB / 385.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005205/0.1928, allocations: 423.1 kB / 386.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1928, allocations: 0 / 386.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000935/0.1938, allocations: 240 kB / 386.4 MB, free: 7.34 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.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003139/0.1969, allocations: 2.042 MB / 388.4 MB, free: 5.266 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002182/0.1991, allocations: 1.057 MB / 389.5 MB, free: 4.195 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1991, allocations: 0 / 389.5 MB, free: 4.195 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.2006, allocations: 0.6434 MB / 390.1 MB, free: 3.539 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008368/0.2015, allocations: 139.2 kB / 390.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00978/0.2113, allocations: 7.908 MB / 398.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006219/0.212, allocations: 1.005 MB / 399.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004394/0.2124, allocations: 85.48 kB / 399.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004083/0.2128, allocations: 319.3 kB / 399.6 MB, free: 9.895 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2128, allocations: 0 / 399.6 MB, free: 9.895 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0347/0.2475, allocations: 17.18 MB / 416.7 MB, free: 8.996 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00024/0.2478, allocations: 212.2 kB / 416.9 MB, free: 8.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.485/2.733, allocations: 0 / 416.9 MB, free: 8.754 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)