Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.001347/0.001347, allocations: 110 kB / 18.49 MB, free: 4.543 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.001362/0.001362, allocations: 198.6 kB / 21.43 MB, free: 1.609 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.403/1.403, allocations: 225.6 MB / 249.8 MB, free: 3.602 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.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 52.06 kB / 366.4 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1175, allocations: 52.14 MB / 418.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004534/0.122, allocations: 2.894 MB / 421.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.1233, allocations: 0.7012 MB / 422.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.1234, allocations: 11.94 kB / 422.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.1236, allocations: 51.5 kB / 422.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.1238, allocations: 95.19 kB / 422.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.1241, allocations: 115.8 kB / 422.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004635/0.1246, allocations: 386.5 kB / 422.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/0.1248, allocations: 99.84 kB / 422.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000186/0.125, allocations: 151.5 kB / 423 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002354/0.1253, allocations: 183.2 kB / 423.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.849e-05/0.1253, allocations: 36 kB / 423.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.529e-05/0.1254, allocations: 36 kB / 423.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.99e-05/0.1255, allocations: 79.69 kB / 423.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.1256, allocations: 167.1 kB / 423.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004562/0.1261, allocations: 402.4 kB / 423.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1261, allocations: 0 / 423.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1261, allocations: 0 / 423.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.1261, allocations: 0 / 423.9 MB, free: 7.156 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001451/0.1276, allocations: 0.6907 MB / 424.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.1276, allocations: 8.031 kB / 424.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.107e-05/0.1276, allocations: 8.75 kB / 424.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.95e-05/0.1277, allocations: 58.73 kB / 424.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.696e-05/0.1277, allocations: 44.73 kB / 424.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004182/0.1282, allocations: 291.7 kB / 425 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.1282, allocations: 20.94 kB / 425 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.1282, allocations: 24.38 kB / 425 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007233/0.129, allocations: 323.6 kB / 425.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.129, allocations: 0 / 425.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.129, allocations: 15.98 kB / 425.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.129, allocations: 7.938 kB / 425.4 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008344/0.1298, allocations: 282 kB / 425.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.1318, allocations: 1.134 MB / 426.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008808/0.1326, allocations: 206.5 kB / 427 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.133, allocations: 84.8 kB / 427.1 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.133, allocations: 192 / 427.1 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004564/0.1334, allocations: 160.9 kB / 427.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.1335, allocations: 0 / 427.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001329/0.1348, allocations: 407.2 kB / 427.6 MB, free: 3.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.1348, allocations: 85.11 kB / 427.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003739/0.1352, allocations: 324.5 kB / 428 MB, free: 2.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.1353, allocations: 29.73 kB / 428 MB, free: 2.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.1354, allocations: 215.9 kB / 428.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.308e-05/0.1355, allocations: 39.72 kB / 428.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.879e-05/0.1356, allocations: 53.89 kB / 428.3 MB, free: 2.398 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1357, allocations: 334.8 kB / 428.7 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003668/0.1361, allocations: 104.1 kB / 428.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004493/0.1365, allocations: 219.6 kB / 429 MB, free: 1.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007705/0.1373, allocations: 331.9 kB / 429.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1373, allocations: 0 / 429.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009799/0.1383, allocations: 403.7 kB / 429.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.764e-05/0.1383, allocations: 33.7 kB / 429.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.1383, allocations: 4 kB / 429.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.1385, allocations: 41.02 kB / 429.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.1388, allocations: 59.89 kB / 429.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.14, allocations: 1.406 MB / 431.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.1404, allocations: 59.64 kB / 431.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.1404, allocations: 20.09 kB / 431.3 MB, free: 15.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.1406, allocations: 156.6 kB / 431.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.1406, allocations: 31.8 kB / 431.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.079e-05/0.1407, allocations: 26.61 kB / 431.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.1407, allocations: 3.938 kB / 431.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1407, allocations: 4 kB / 431.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.1407, allocations: 0 / 431.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005063/0.1412, allocations: 459.2 kB / 432 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1412, allocations: 0 / 432 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.1414, allocations: 31.91 kB / 432 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.967e-05/0.1415, allocations: 24.84 kB / 432 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.1415, allocations: 3.984 kB / 432.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001149/0.1426, allocations: 1.399 MB / 433.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1426, allocations: 4.031 kB / 433.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007783/0.1434, allocations: 270.5 kB / 433.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.642e-05/0.1435, allocations: 101 kB / 433.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.1435, allocations: 4 kB / 433.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.1438, allocations: 31.89 kB / 433.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.948e-05/0.1439, allocations: 15.98 kB / 433.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.1439, allocations: 8 kB / 433.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002567/0.1441, allocations: 227.1 kB / 434.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1441, allocations: 0 / 434.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.1445, allocations: 75.89 kB / 434.2 MB, free: 12.03 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001175/0.1456, allocations: 0.8091 MB / 435 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.1467, allocations: 410.5 kB / 435.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1467, allocations: 0 / 435.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005024/0.1472, allocations: 210.5 kB / 435.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.1475, allocations: 55.28 kB / 435.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005245/0.1528, allocations: 3.153 MB / 438.8 MB, free: 7.137 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006995/0.1535, allocations: 0.7558 MB / 439.5 MB, free: 6.355 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.1536, allocations: 30.97 kB / 439.6 MB, free: 6.324 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.1538, allocations: 87.41 kB / 439.7 MB, free: 6.242 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1538, allocations: 0 / 439.7 MB, free: 6.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.1834, allocations: 6.149 MB / 445.8 MB, free: 272 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.933/10.12, allocations: 15.98 kB / 445.8 MB, free: 256 kB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.674941538018174] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 10.475215163023677 10.485451612 10.357101711 Calling exit ...