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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 125 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 47.92 kB / 365.7 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1036, allocations: 52.15 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007481/0.1111, allocations: 6.086 MB / 423.9 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003112/0.1142, allocations: 1.525 MB / 425.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004417/0.1147, allocations: 19.94 kB / 425.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000378/0.115, allocations: 170.3 kB / 425.6 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005643/0.1156, allocations: 293.2 kB / 425.9 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008136/0.1164, allocations: 411.4 kB / 426.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001429/0.1178, allocations: 1.387 MB / 427.7 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004707/0.1183, allocations: 305.3 kB / 428 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005889/0.1189, allocations: 0.4906 MB / 428.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006774/0.1196, allocations: 0.568 MB / 429 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001727/0.1198, allocations: 136 kB / 429.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000275/0.12, allocations: 168 kB / 429.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002358/0.1203, allocations: 279.1 kB / 429.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005669/0.1208, allocations: 0.591 MB / 430.2 MB, free: 112 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.1225, allocations: 1.537 MB / 431.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1225, allocations: 0 / 431.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1225, allocations: 0 / 431.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.1225, allocations: 0 / 431.7 MB, free: 14.56 MB / 366.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.002868/0.1254, allocations: 1.413 MB / 433.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1254, allocations: 12.03 kB / 433.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.1256, allocations: 135.6 kB / 433.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.1258, allocations: 120.2 kB / 433.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008788/0.1267, allocations: 0.5504 MB / 434 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.472e-05/0.1267, allocations: 66.38 kB / 434 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.1269, allocations: 100.2 kB / 434.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.1284, allocations: 0.8586 MB / 435 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.1285, allocations: 0 / 435 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.461e-05/0.1285, allocations: 40 kB / 435 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.1286, allocations: 20 kB / 435 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.1302, allocations: 0.8472 MB / 435.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00557/0.1358, allocations: 3.231 MB / 439.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.1369, allocations: 0.6294 MB / 439.7 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007014/0.1376, allocations: 391.1 kB / 440.1 MB, free: 5.922 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.643e-05/0.1377, allocations: 16.53 kB / 440.1 MB, free: 5.906 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.168e-05/0.1377, allocations: 51.11 kB / 440.2 MB, free: 5.844 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.504e-06/0.1378, allocations: 4 kB / 440.2 MB, free: 5.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004671/0.1424, allocations: 2.261 MB / 442.5 MB, free: 3.527 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.1425, allocations: 60.06 kB / 442.5 MB, free: 3.457 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008384/0.1433, allocations: 0.6057 MB / 443.1 MB, free: 2.848 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.906e-05/0.1434, allocations: 41.7 kB / 443.2 MB, free: 2.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003517/0.1437, allocations: 452.3 kB / 443.6 MB, free: 2.352 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002311/0.144, allocations: 269.7 kB / 443.9 MB, free: 2.086 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003201/0.1443, allocations: 154.6 kB / 444 MB, free: 1.926 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002494/0.1445, allocations: 386.7 kB / 444.4 MB, free: 1.539 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007097/0.1452, allocations: 321.9 kB / 444.7 MB, free: 1.227 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007837/0.146, allocations: 472.6 kB / 445.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1883/0.3343, allocations: 0.7996 MB / 446 MB, free: 29.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.3343, allocations: 1.5 kB / 446 MB, free: 29.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002024/0.3363, allocations: 1.115 MB / 447.1 MB, free: 29.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.3364, allocations: 5.938 kB / 447.1 MB, free: 29.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.3364, allocations: 7.219 kB / 447.1 MB, free: 29.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004903/0.3369, allocations: 186.5 kB / 447.3 MB, free: 29.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007817/0.3376, allocations: 194.3 kB / 447.5 MB, free: 29.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002862/0.3405, allocations: 2.892 MB / 450.4 MB, free: 27.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005974/0.3411, allocations: 39.22 kB / 450.4 MB, free: 27.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.096e-05/0.3412, allocations: 34.38 kB / 450.4 MB, free: 27.74 MB / 366.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 (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,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002851/0.3414, allocations: 229.8 kB / 450.7 MB, free: 27.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.3415, allocations: 86.12 kB / 450.7 MB, free: 27.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.3417, allocations: 91.02 kB / 450.8 MB, free: 27.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.82e-06/0.3417, allocations: 9.094 kB / 450.8 MB, free: 27.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.3417, allocations: 1.844 kB / 450.8 MB, free: 27.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3417, allocations: 8.438 kB / 450.9 MB, free: 27.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008234/0.3425, allocations: 0.8841 MB / 451.7 MB, free: 27.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3425, allocations: 1.906 kB / 451.7 MB, free: 27.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006881/0.3432, allocations: 146.4 kB / 451.9 MB, free: 27.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004713/0.3437, allocations: 188.9 kB / 452.1 MB, free: 27.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.197e-05/0.3437, allocations: 18.33 kB / 452.1 MB, free: 27.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002953/0.3467, allocations: 2.901 MB / 455 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3467, allocations: 1.344 kB / 455 MB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002578/0.3493, allocations: 1.424 MB / 456.4 MB, free: 24.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.3495, allocations: 152.3 kB / 456.6 MB, free: 24.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.839e-05/0.3496, allocations: 16.78 kB / 456.6 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005772/0.3501, allocations: 57.25 kB / 456.6 MB, free: 24.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.3503, allocations: 51.77 kB / 456.7 MB, free: 24.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.462e-05/0.3503, allocations: 27.86 kB / 456.7 MB, free: 24.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004943/0.3508, allocations: 426.8 kB / 457.1 MB, free: 24.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3508, allocations: 3.719 kB / 457.1 MB, free: 24.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008074/0.3516, allocations: 246.8 kB / 457.4 MB, free: 24.17 MB / 366.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 (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,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002589/0.3542, allocations: 1.997 MB / 459.4 MB, free: 22.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002033/0.3562, allocations: 1 MB / 460.4 MB, free: 22.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3562, allocations: 1.844 kB / 460.4 MB, free: 22.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.3574, allocations: 0.6075 MB / 461 MB, free: 22.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006943/0.3581, allocations: 155 kB / 461.1 MB, free: 22.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.3686, allocations: 7.444 MB / 468.6 MB, free: 18.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006364/0.3692, allocations: 0.9811 MB / 469.6 MB, free: 17.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005161/0.3697, allocations: 95.34 kB / 469.6 MB, free: 17.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004266/0.3701, allocations: 327.7 kB / 470 MB, free: 17.08 MB / 366.1 MB Notification: Performance of SimCode: time 2.204e-06/0.3701, allocations: 0 / 470 MB, free: 17.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04737/0.4175, allocations: 19.14 MB / 489.1 MB, free: 5.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.85, allocations: 20.23 kB / 489.1 MB, free: 5.715 MB / 366.1 MB " [Timeout remaining time 648] (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/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 --stepSize=0.00019984 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.367393545340747] 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'] 11.93726152786985 11.955595647 11.828660559 Calling exit ...