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.000885/0.000885, 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.005423/0.005423, allocations: 165.6 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.8925/0.8925, allocations: 158.6 MB / 186.5 MB, free: 3.031 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.643e-06/1.643e-06, allocations: 0 / 298.5 MB, free: 3.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.424e-05/1.588e-05, allocations: 6.281 kB / 298.5 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.1331/0.1332, allocations: 5.022 MB / 303.5 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.1351, allocations: 1.408 MB / 304.9 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002412/0.1354, allocations: 22.34 kB / 304.9 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002476/0.1356, allocations: 158.4 kB / 305.1 MB, free: 12.54 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003158/0.1359, allocations: 290.8 kB / 305.4 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005578/0.1365, allocations: 363.9 kB / 305.7 MB, free: 12.11 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008522/0.1374, allocations: 1.281 MB / 307 MB, free: 11.42 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003886/0.1377, allocations: 273.1 kB / 307.3 MB, free: 11.26 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007727/0.1385, allocations: 0.6999 MB / 308 MB, free: 10.94 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004666/0.139, allocations: 399.8 kB / 308.3 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001434/0.1391, allocations: 125.1 kB / 308.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002294/0.1394, allocations: 162.5 kB / 308.6 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.1395, allocations: 251.7 kB / 308.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002871/0.1398, allocations: 395.1 kB / 309.3 MB, free: 10.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00148/0.1413, allocations: 1.478 MB / 310.7 MB, free: 9.852 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.1413, allocations: 0 / 310.7 MB, free: 9.852 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1413, allocations: 0 / 310.7 MB, free: 9.852 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.204e-05/0.1413, allocations: 0 / 310.7 MB, free: 9.852 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.001568/0.1429, allocations: 1.237 MB / 312 MB, free: 9.078 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.1429, allocations: 18.73 kB / 312 MB, free: 9.07 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.143, allocations: 129.4 kB / 312.1 MB, free: 8.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.1431, allocations: 109.2 kB / 312.2 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005595/0.1437, allocations: 459.6 kB / 312.7 MB, free: 8.586 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/0.1437, allocations: 65.14 kB / 312.7 MB, free: 8.559 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.201e-05/0.1438, allocations: 86.44 kB / 312.8 MB, free: 8.527 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.1449, allocations: 1.08 MB / 313.9 MB, free: 7.902 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1449, allocations: 192 / 313.9 MB, free: 7.902 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.944e-05/0.1449, allocations: 37.12 kB / 313.9 MB, free: 7.875 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.145, allocations: 18.88 kB / 314 MB, free: 7.875 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.146, allocations: 0.7779 MB / 314.7 MB, free: 7.602 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003249/0.1493, allocations: 2.72 MB / 317.5 MB, free: 5.945 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007391/0.15, allocations: 0.5983 MB / 318.1 MB, free: 5.664 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004206/0.1504, allocations: 376.7 kB / 318.4 MB, free: 5.512 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.957e-05/0.1505, allocations: 16.16 kB / 318.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.1505, allocations: 43.78 kB / 318.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of pre-optimization done (n=67): time 1.984e-06/0.1505, allocations: 0 / 318.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of matching and sorting (n=71): time 0.002741/0.1533, allocations: 2.129 MB / 320.6 MB, free: 4.402 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.698e-05/0.1533, allocations: 62.66 kB / 320.7 MB, free: 4.332 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003823/0.1537, allocations: 0.5094 MB / 321.2 MB, free: 4.031 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.1537, allocations: 41.42 kB / 321.2 MB, free: 3.988 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.1538, allocations: 401.8 kB / 321.6 MB, free: 3.633 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.564e-05/0.1539, allocations: 265.3 kB / 321.9 MB, free: 3.398 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.1541, allocations: 132.6 kB / 322 MB, free: 3.316 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.434e-05/0.1541, allocations: 378.4 kB / 322.4 MB, free: 2.953 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/0.1545, allocations: 308.5 kB / 322.7 MB, free: 2.797 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.1549, allocations: 427 kB / 323.1 MB, free: 2.52 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008112/0.1557, allocations: 0.7447 MB / 323.8 MB, free: 2.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.1557, allocations: 1.219 kB / 323.8 MB, free: 2.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001178/0.1569, allocations: 1.039 MB / 324.9 MB, free: 1.512 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1569, allocations: 5.531 kB / 324.9 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.1569, allocations: 7.094 kB / 324.9 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003312/0.1573, allocations: 175.1 kB / 325.1 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004117/0.1577, allocations: 187 kB / 325.2 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.1601, allocations: 2.714 MB / 328 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.1603, allocations: 34.64 kB / 328 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.473e-05/0.1604, allocations: 33.05 kB / 328 MB, free: 15.14 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.0002435/0.1606, allocations: 217.7 kB / 328.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.613e-05/0.1607, allocations: 70.17 kB / 328.3 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.1608, allocations: 87.61 kB / 328.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1608, allocations: 12.16 kB / 328.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.1608, allocations: 3.938 kB / 328.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.1608, allocations: 14.55 kB / 328.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006606/0.1615, allocations: 0.6708 MB / 329.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1615, allocations: 0 / 329.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003457/0.1618, allocations: 147.3 kB / 329.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003009/0.1621, allocations: 185.4 kB / 329.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.673e-05/0.1622, allocations: 19.89 kB / 329.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/0.1644, allocations: 2.711 MB / 332.1 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1644, allocations: 3.938 kB / 332.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/0.166, allocations: 1.384 MB / 333.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.629e-05/0.1661, allocations: 67.52 kB / 333.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.91e-05/0.1661, allocations: 19.44 kB / 333.6 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002705/0.1664, allocations: 51.95 kB / 333.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.141e-05/0.1665, allocations: 56.55 kB / 333.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.114e-05/0.1665, allocations: 19.98 kB / 333.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002533/0.1668, allocations: 358.9 kB / 334.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.1668, allocations: 0 / 334.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004745/0.1673, allocations: 223.9 kB / 334.3 MB, free: 10.18 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.002088/0.1693, allocations: 1.962 MB / 336.3 MB, free: 8.184 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001223/0.1706, allocations: 0.9516 MB / 337.2 MB, free: 7.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1706, allocations: 8.062 kB / 337.2 MB, free: 7.215 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007044/0.1713, allocations: 0.5997 MB / 337.8 MB, free: 6.602 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004616/0.1717, allocations: 134.2 kB / 338 MB, free: 6.477 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007035/0.1788, allocations: 6.729 MB / 344.7 MB, free: 15.58 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.179, allocations: 361.4 kB / 345 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002048/0.1792, allocations: 85.05 kB / 345.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000285/0.1795, allocations: 292.4 kB / 345.4 MB, free: 14.83 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.1795, allocations: 0 / 345.4 MB, free: 14.83 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.2099, allocations: 19.24 MB / 364.7 MB, free: 11.52 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.532/7.742, allocations: 8.062 kB / 364.7 MB, free: 11.51 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 & 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.00019984 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.506997488439083] 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.8344617607072 7.851433684 7.707927697 Calling exit ...