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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.006696/0.006696, allocations: 165.8 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9001/0.9001, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 298.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.086e-05/2.264e-05, allocations: 2.281 kB / 298.5 MB, free: 3.496 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.1498/0.1499, allocations: 5.031 MB / 303.5 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002656/0.1525, allocations: 1.409 MB / 304.9 MB, free: 12.65 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005304/0.153, allocations: 18.31 kB / 304.9 MB, free: 12.65 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003355/0.1534, allocations: 158.8 kB / 305.1 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000541/0.1539, allocations: 298.4 kB / 305.4 MB, free: 12.33 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.1551, allocations: 358.6 kB / 305.7 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001952/0.157, allocations: 1.282 MB / 307 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004405/0.1575, allocations: 272.7 kB / 307.3 MB, free: 11.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009998/0.1585, allocations: 0.697 MB / 308 MB, free: 10.96 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004791/0.159, allocations: 403.7 kB / 308.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.1591, allocations: 129.1 kB / 308.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003415/0.1594, allocations: 158.2 kB / 308.6 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.1596, allocations: 256.1 kB / 308.9 MB, free: 10.62 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003984/0.16, allocations: 394.4 kB / 309.3 MB, free: 10.44 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001882/0.1619, allocations: 1.477 MB / 310.7 MB, free: 9.859 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1619, allocations: 0 / 310.7 MB, free: 9.859 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1619, allocations: 0 / 310.7 MB, free: 9.859 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.17e-05/0.1619, allocations: 1.281 kB / 310.7 MB, free: 9.859 MB / 282.7 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.001674/0.1636, allocations: 1.231 MB / 312 MB, free: 9.094 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.1637, allocations: 13.02 kB / 312 MB, free: 9.09 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.1638, allocations: 128.5 kB / 312.1 MB, free: 9 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.1639, allocations: 114.6 kB / 312.2 MB, free: 8.941 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005769/0.1645, allocations: 459 kB / 312.7 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.745e-05/0.1645, allocations: 62.56 kB / 312.7 MB, free: 8.574 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.653e-05/0.1646, allocations: 86.7 kB / 312.8 MB, free: 8.543 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.1657, allocations: 1.08 MB / 313.9 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1657, allocations: 4.188 kB / 313.9 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.033e-05/0.1658, allocations: 40.31 kB / 313.9 MB, free: 7.883 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.1658, allocations: 19.25 kB / 314 MB, free: 7.883 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.1669, allocations: 0.7747 MB / 314.7 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003132/0.17, allocations: 2.716 MB / 317.5 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007379/0.1708, allocations: 0.6048 MB / 318.1 MB, free: 5.676 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004322/0.1712, allocations: 370.2 kB / 318.4 MB, free: 5.527 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.412e-05/0.1712, allocations: 11.47 kB / 318.4 MB, free: 5.527 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.1713, allocations: 39.53 kB / 318.5 MB, free: 5.484 MB / 282.7 MB Notification: Performance of pre-optimization done (n=67): time 2.064e-06/0.1713, allocations: 4 kB / 318.5 MB, free: 5.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=71): time 0.002962/0.1742, allocations: 2.14 MB / 320.6 MB, free: 4.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.1742, allocations: 64.92 kB / 320.7 MB, free: 4.34 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000444/0.1747, allocations: 0.5094 MB / 321.2 MB, free: 4.047 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.1747, allocations: 40.98 kB / 321.2 MB, free: 4.004 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1749, allocations: 397 kB / 321.6 MB, free: 3.652 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.508e-05/0.1749, allocations: 262.5 kB / 321.9 MB, free: 3.422 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.1751, allocations: 135.8 kB / 322 MB, free: 3.336 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.744e-05/0.1752, allocations: 379.7 kB / 322.4 MB, free: 2.973 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004034/0.1756, allocations: 303.6 kB / 322.7 MB, free: 2.82 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004699/0.176, allocations: 430.2 kB / 323.1 MB, free: 2.539 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008591/0.1769, allocations: 0.7383 MB / 323.8 MB, free: 2.098 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1769, allocations: 0 / 323.8 MB, free: 2.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001402/0.1783, allocations: 1.039 MB / 324.9 MB, free: 1.539 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.1783, allocations: 9.469 kB / 324.9 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.1783, allocations: 6.797 kB / 324.9 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003899/0.1787, allocations: 179 kB / 325.1 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004659/0.1792, allocations: 188.2 kB / 325.2 MB, free: 1.398 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002495/0.1817, allocations: 2.708 MB / 328 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004879/0.1822, allocations: 38.44 kB / 328 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.1822, allocations: 33.3 kB / 328 MB, free: 15.16 MB / 298.7 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.0003763/0.1826, allocations: 222 kB / 328.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.765e-05/0.1827, allocations: 74.05 kB / 328.3 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.1828, allocations: 83.33 kB / 328.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.1828, allocations: 8.891 kB / 328.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-05/0.1828, allocations: 2.625 kB / 328.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.1828, allocations: 7.922 kB / 328.4 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008347/0.1837, allocations: 0.6769 MB / 329.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1837, allocations: 0.7812 kB / 329.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003697/0.184, allocations: 143.7 kB / 329.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003356/0.1844, allocations: 185.3 kB / 329.4 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.87e-05/0.1844, allocations: 23.95 kB / 329.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002565/0.187, allocations: 2.711 MB / 332.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.187, allocations: 0 / 332.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.1887, allocations: 1.384 MB / 333.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.1888, allocations: 71.52 kB / 333.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.536e-05/0.1889, allocations: 12.88 kB / 333.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.1892, allocations: 51.95 kB / 333.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.1893, allocations: 52.64 kB / 333.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/0.1893, allocations: 33.23 kB / 333.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002801/0.1896, allocations: 350.9 kB / 334.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1896, allocations: 4 kB / 334.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006409/0.1902, allocations: 227.9 kB / 334.3 MB, free: 10.2 MB / 298.7 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.002119/0.1923, allocations: 1.949 MB / 336.3 MB, free: 8.215 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.1938, allocations: 0.9588 MB / 337.2 MB, free: 7.246 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1938, allocations: 0 / 337.2 MB, free: 7.246 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007839/0.1945, allocations: 0.6042 MB / 337.8 MB, free: 6.629 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005499/0.1951, allocations: 143.7 kB / 338 MB, free: 6.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007778/0.2029, allocations: 6.722 MB / 344.7 MB, free: 15.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.2032, allocations: 365.3 kB / 345 MB, free: 15.22 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003558/0.2036, allocations: 85.03 kB / 345.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.2039, allocations: 296.4 kB / 345.4 MB, free: 14.85 MB / 314.7 MB Notification: Performance of SimCode: time 2.294e-06/0.2039, allocations: 4 kB / 345.4 MB, free: 14.85 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03846/0.2423, allocations: 19.23 MB / 364.6 MB, free: 11.55 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.312/7.555, allocations: 3.984 kB / 364.7 MB, free: 11.55 MB / 330.7 MB " [Timeout remaining time 652] (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 --stepSize=0.00019984 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.19233806990087] Failed to read output from testmodel.py, exit status != 0: ['time', 'C1.v', 'C2.v', 'C3.v', 'C4.v', 'C5.v', 'Transistor1.Tr.C.v', 'Transistor1.ct.v', 'Transistor2.Tr.C.v', 'Transistor2.ct.v'] 7.647620614618063 7.657878946 7.494074318 Calling exit ...