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.001384/0.001384, allocations: 110.6 kB / 19.17 MB, free: 3.871 MB / 14.72 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.001475/0.001475, allocations: 203.8 kB / 22.12 MB, free: 0.9297 MB / 14.72 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 1.578/1.578, allocations: 207.6 MB / 232.5 MB, free: 3.891 MB / 174.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 51.92 kB / 343.1 MB, free: 9.918 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1224, allocations: 49.12 MB / 392.2 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00773/0.1301, allocations: 5.735 MB / 397.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003485/0.1336, allocations: 1.461 MB / 399.4 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008253/0.1344, allocations: 15.94 kB / 399.4 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004728/0.1349, allocations: 154.4 kB / 399.5 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007488/0.1356, allocations: 277.5 kB / 399.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.1367, allocations: 355.4 kB / 400.2 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00165/0.1383, allocations: 1.238 MB / 401.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000527/0.1389, allocations: 301 kB / 401.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007006/0.1396, allocations: 478.5 kB / 402.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006151/0.1402, allocations: 0.5174 MB / 402.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001803/0.1404, allocations: 124 kB / 402.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000276/0.1406, allocations: 160 kB / 403 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002524/0.1409, allocations: 255.2 kB / 403.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005482/0.1414, allocations: 0.5366 MB / 403.7 MB, free: 13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001511/0.143, allocations: 1.417 MB / 405.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.143, allocations: 0 / 405.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.143, allocations: 0 / 405.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.652e-05/0.143, allocations: 4 kB / 405.2 MB, free: 11.57 MB / 334.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.002774/0.1458, allocations: 1.312 MB / 406.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1458, allocations: 12.03 kB / 406.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.058e-05/0.1458, allocations: 22.19 kB / 406.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.146, allocations: 123.2 kB / 406.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002032/0.1462, allocations: 116.3 kB / 406.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008837/0.1471, allocations: 0.5133 MB / 407.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.944e-05/0.1472, allocations: 62.38 kB / 407.3 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.1473, allocations: 84.33 kB / 407.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.149, allocations: 0.8843 MB / 408.3 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.1491, allocations: 4 kB / 408.3 MB, free: 8.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.854e-05/0.1491, allocations: 32 kB / 408.3 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.1492, allocations: 19.98 kB / 408.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.1509, allocations: 0.7808 MB / 409.1 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005807/0.1567, allocations: 3.03 MB / 412.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.1579, allocations: 0.5993 MB / 412.7 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007162/0.1586, allocations: 374.4 kB / 413.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.966e-05/0.1587, allocations: 12.55 kB / 413.1 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.965e-05/0.1587, allocations: 51.06 kB / 413.2 MB, free: 3.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.926e-06/0.1588, allocations: 0 / 413.2 MB, free: 3.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.005525/0.1643, allocations: 2.199 MB / 415.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.45e-05/0.1643, allocations: 64.06 kB / 415.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008913/0.1652, allocations: 0.5067 MB / 415.9 MB, free: 472 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.814e-05/0.1653, allocations: 41.7 kB / 416 MB, free: 424 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003785/0.1657, allocations: 400.4 kB / 416.4 MB, free: 16 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003193/0.166, allocations: 265.9 kB / 416.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002742/0.1663, allocations: 134.7 kB / 416.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002535/0.1665, allocations: 370.8 kB / 417.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006895/0.1672, allocations: 313.9 kB / 417.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008083/0.168, allocations: 425.1 kB / 417.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.1695, allocations: 0.7389 MB / 418.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-06/0.1695, allocations: 0 / 418.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002223/0.1717, allocations: 1.044 MB / 419.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.1717, allocations: 15.88 kB / 419.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.1717, allocations: 4 kB / 419.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006626/0.1724, allocations: 176.7 kB / 419.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008705/0.1733, allocations: 183.8 kB / 420 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004414/0.1777, allocations: 2.858 MB / 422.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007641/0.1784, allocations: 40.03 kB / 422.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.169e-05/0.1785, allocations: 24 kB / 422.9 MB, free: 9.223 MB / 350.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.0005069/0.179, allocations: 225.7 kB / 423.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.1792, allocations: 75.53 kB / 423.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002271/0.1794, allocations: 90.11 kB / 423.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-06/0.1794, allocations: 8 kB / 423.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/0.1794, allocations: 0 / 423.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.1794, allocations: 3.984 kB / 423.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001295/0.1807, allocations: 0.8377 MB / 424.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.1807, allocations: 0 / 424.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000752/0.1815, allocations: 147.8 kB / 424.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006013/0.1821, allocations: 188.7 kB / 424.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.679e-05/0.1821, allocations: 28.05 kB / 424.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004562/0.1867, allocations: 2.862 MB / 427.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1867, allocations: 0 / 427.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/0.1899, allocations: 1.389 MB / 428.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/0.1902, allocations: 140.6 kB / 428.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.1903, allocations: 16 kB / 428.9 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005948/0.1909, allocations: 59.89 kB / 429 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.191, allocations: 48.58 kB / 429 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-05/0.1911, allocations: 31.92 kB / 429.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005274/0.1916, allocations: 350.9 kB / 429.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1916, allocations: 0 / 429.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008869/0.1925, allocations: 224 kB / 429.6 MB, free: 2.289 MB / 350.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.0033/0.1958, allocations: 1.957 MB / 431.6 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.1982, allocations: 0.9668 MB / 432.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/0.1982, allocations: 0 / 432.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.1998, allocations: 0.6003 MB / 433.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008606/0.2006, allocations: 150.1 kB / 433.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/0.2138, allocations: 6.878 MB / 440.2 MB, free: 7.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007737/0.2146, allocations: 0.9539 MB / 441.1 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004031/0.215, allocations: 81.05 kB / 441.2 MB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000459/0.2154, allocations: 295.3 kB / 441.5 MB, free: 6.172 MB / 366.1 MB Notification: Performance of SimCode: time 1.874e-06/0.2154, allocations: 0 / 441.5 MB, free: 6.172 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05517/0.2706, allocations: 17.72 MB / 459.2 MB, free: 4.375 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.13, allocations: 8 kB / 459.2 MB, free: 4.367 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.948128125979565] 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'] 12.277186226972844 12.48048837 12.335326797 Calling exit ...