Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.001304/0.001304, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001343/0.001343, allocations: 219 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.554/1.554, allocations: 230.6 MB / 254.8 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.OpAmps.Comparator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 55.92 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1138, allocations: 53.34 MB / 427.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004489/0.1183, allocations: 2.904 MB / 430 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001402/0.1197, allocations: 0.744 MB / 430.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.1199, allocations: 11.94 kB / 430.7 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.12, allocations: 47.5 kB / 430.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.1203, allocations: 99.19 kB / 430.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.1206, allocations: 107.8 kB / 431 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00047/0.121, allocations: 390.5 kB / 431.4 MB, free: 468 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000216/0.1213, allocations: 91.95 kB / 431.4 MB, free: 372 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.1215, allocations: 159.3 kB / 431.6 MB, free: 212 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.1217, allocations: 179.2 kB / 431.8 MB, free: 32 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.315e-05/0.1218, allocations: 36.05 kB / 431.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.581e-05/0.1218, allocations: 36 kB / 431.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.958e-05/0.1219, allocations: 79.69 kB / 431.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.1221, allocations: 167.2 kB / 432.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.1226, allocations: 394.4 kB / 432.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1226, allocations: 3.938 kB / 432.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1226, allocations: 0 / 432.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.1226, allocations: 0 / 432.5 MB, free: 15.33 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001437/0.124, allocations: 0.6922 MB / 433.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1241, allocations: 16.03 kB / 433.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.819e-05/0.1241, allocations: 4.75 kB / 433.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.368e-05/0.1241, allocations: 58.72 kB / 433.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.544e-05/0.1242, allocations: 40.7 kB / 433.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/0.1247, allocations: 287.8 kB / 433.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.1247, allocations: 24.86 kB / 433.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.707e-05/0.1247, allocations: 24.38 kB / 433.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007175/0.1254, allocations: 327.6 kB / 433.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1255, allocations: 0 / 433.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.129e-05/0.1255, allocations: 12 kB / 433.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.1255, allocations: 8 kB / 434 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008245/0.1263, allocations: 270.1 kB / 434.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.1283, allocations: 1.142 MB / 435.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008563/0.1291, allocations: 206.5 kB / 435.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003165/0.1294, allocations: 88.78 kB / 435.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.1295, allocations: 0 / 435.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004723/0.1299, allocations: 161.1 kB / 435.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.1299, allocations: 0 / 435.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.001388/0.1313, allocations: 411.1 kB / 436.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.1314, allocations: 89.05 kB / 436.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/0.1318, allocations: 328.5 kB / 436.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.1318, allocations: 29.7 kB / 436.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.132, allocations: 211.9 kB / 436.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.067e-05/0.132, allocations: 35.73 kB / 436.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.1321, allocations: 57.88 kB / 436.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.1323, allocations: 338.8 kB / 437.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003621/0.1327, allocations: 100.1 kB / 437.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.1331, allocations: 210.9 kB / 437.6 MB, free: 9.867 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007824/0.1339, allocations: 339.9 kB / 437.9 MB, free: 9.477 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1339, allocations: 4 kB / 437.9 MB, free: 9.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001034/0.1349, allocations: 398.2 kB / 438.3 MB, free: 9.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.135, allocations: 33.7 kB / 438.3 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.135, allocations: 4 kB / 438.3 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002042/0.1352, allocations: 37.2 kB / 438.4 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.1355, allocations: 59.89 kB / 438.4 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.1368, allocations: 1.402 MB / 439.8 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00035/0.1371, allocations: 59.83 kB / 439.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.1372, allocations: 16 kB / 439.9 MB, free: 7.305 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.000194/0.1374, allocations: 147.7 kB / 440.1 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.079e-05/0.1374, allocations: 31.81 kB / 440.1 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.639e-05/0.1375, allocations: 30.61 kB / 440.1 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.1375, allocations: 3.938 kB / 440.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1375, allocations: 0 / 440.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1375, allocations: 0 / 440.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005246/0.138, allocations: 451.3 kB / 440.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.138, allocations: 0 / 440.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.1382, allocations: 31.91 kB / 440.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001161/0.1383, allocations: 36.75 kB / 440.6 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.1383, allocations: 4 kB / 440.6 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.1395, allocations: 1.395 MB / 442 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1395, allocations: 0 / 442 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007863/0.1403, allocations: 270.9 kB / 442.3 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.781e-05/0.1404, allocations: 109 kB / 442.4 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.733e-05/0.1404, allocations: 7.922 kB / 442.4 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.1406, allocations: 27.91 kB / 442.4 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.4e-05/0.1407, allocations: 19.98 kB / 442.5 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.1407, allocations: 8 kB / 442.5 MB, free: 4.504 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002777/0.141, allocations: 231 kB / 442.7 MB, free: 4.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.141, allocations: 0 / 442.7 MB, free: 4.281 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003606/0.1414, allocations: 71.88 kB / 442.8 MB, free: 4.211 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.001224/0.1426, allocations: 0.8051 MB / 443.6 MB, free: 3.367 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.1437, allocations: 406 kB / 444 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1437, allocations: 0 / 444 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005897/0.1443, allocations: 215.2 kB / 444.2 MB, free: 2.723 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.1447, allocations: 47.47 kB / 444.2 MB, free: 2.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2001/0.3447, allocations: 3.144 MB / 447.4 MB, free: 23.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.345, allocations: 0.7534 MB / 448.1 MB, free: 22.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002241/0.3452, allocations: 33.92 kB / 448.1 MB, free: 22.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.3454, allocations: 88.53 kB / 448.2 MB, free: 22.71 MB / 366.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3454, allocations: 0 / 448.2 MB, free: 22.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03021/0.3756, allocations: 6.157 MB / 454.4 MB, free: 22.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.69, allocations: 4.438 kB / 454.4 MB, free: 22.19 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.19097277201945] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 10.827863545971923 10.841130253 10.715861469 Calling exit ...