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.001248/0.001248, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001416/0.001416, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.402/1.402, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.001534/0.001534, allocations: 43.94 kB / 378.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2762, allocations: 53.37 MB / 432 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004531/0.2808, allocations: 2.928 MB / 434.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.2822, allocations: 0.7479 MB / 435.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001844/0.2824, allocations: 7.938 kB / 435.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.2826, allocations: 47.5 kB / 435.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.2828, allocations: 103.2 kB / 435.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.2831, allocations: 111.8 kB / 435.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000451/0.2836, allocations: 390.5 kB / 436.3 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.2838, allocations: 96.45 kB / 436.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.284, allocations: 155.4 kB / 436.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.2842, allocations: 179.2 kB / 436.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.92e-05/0.2843, allocations: 36 kB / 436.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.508e-05/0.2843, allocations: 40 kB / 436.8 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.053e-05/0.2844, allocations: 79.69 kB / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.2846, allocations: 167.2 kB / 437 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004753/0.2851, allocations: 398.8 kB / 437.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2851, allocations: 0 / 437.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2851, allocations: 0 / 437.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.2851, allocations: 0 / 437.4 MB, free: 1.387 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001367/0.2864, allocations: 0.613 MB / 438 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2865, allocations: 12.03 kB / 438 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.548e-05/0.2865, allocations: 4.688 kB / 438 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.471e-05/0.2866, allocations: 66.72 kB / 438.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.301e-05/0.2866, allocations: 36.7 kB / 438.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/0.287, allocations: 237.9 kB / 438.4 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.2871, allocations: 20.88 kB / 438.4 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.399e-05/0.2871, allocations: 24.38 kB / 438.4 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007209/0.2878, allocations: 322.6 kB / 438.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.2878, allocations: 0 / 438.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.2879, allocations: 12 kB / 438.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.2879, allocations: 4 kB / 438.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008217/0.2887, allocations: 281.7 kB / 439 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001848/0.2906, allocations: 1.091 MB / 440.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007997/0.2914, allocations: 202.6 kB / 440.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003224/0.2917, allocations: 88.78 kB / 440.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.2917, allocations: 3.984 kB / 440.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004449/0.2921, allocations: 157.1 kB / 440.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.2921, allocations: 3.938 kB / 440.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001275/0.2934, allocations: 346.2 kB / 440.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.142e-05/0.2935, allocations: 81.11 kB / 441 MB, free: 13.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003719/0.2939, allocations: 324.5 kB / 441.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.2939, allocations: 25.7 kB / 441.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.2941, allocations: 219.8 kB / 441.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.617e-05/0.2941, allocations: 31.75 kB / 441.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.2942, allocations: 57.88 kB / 441.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.2944, allocations: 334.8 kB / 441.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/0.2947, allocations: 100.1 kB / 442 MB, free: 12.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004317/0.2952, allocations: 215.7 kB / 442.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007653/0.2959, allocations: 335.8 kB / 442.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2959, allocations: 4 kB / 442.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001011/0.2969, allocations: 399.8 kB / 443 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.288e-05/0.297, allocations: 33.7 kB / 443 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.297, allocations: 4 kB / 443 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.2972, allocations: 36.98 kB / 443.1 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.2974, allocations: 59.89 kB / 443.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.2987, allocations: 1.307 MB / 444.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003857/0.2991, allocations: 55.7 kB / 444.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.2991, allocations: 12 kB / 444.5 MB, free: 9.801 MB / 350.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.0001705/0.2992, allocations: 155.5 kB / 444.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.264e-05/0.2993, allocations: 27.81 kB / 444.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.314e-05/0.2994, allocations: 30.61 kB / 444.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.2994, allocations: 7.938 kB / 444.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2994, allocations: 0 / 444.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2994, allocations: 0 / 444.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005111/0.2999, allocations: 422.3 kB / 445.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2999, allocations: 7.969 kB / 445.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.3001, allocations: 35.84 kB / 445.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.48e-05/0.3001, allocations: 24.84 kB / 445.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.3002, allocations: 3.984 kB / 445.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.3013, allocations: 1.291 MB / 446.5 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3013, allocations: 4.156 kB / 446.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007582/0.3021, allocations: 270.4 kB / 446.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.3021, allocations: 28.03 kB / 446.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.919e-05/0.3022, allocations: 4 kB / 446.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.3024, allocations: 35.83 kB / 446.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.175e-05/0.3025, allocations: 15.98 kB / 446.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.3025, allocations: 3.984 kB / 446.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002551/0.3027, allocations: 239.1 kB / 447.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3027, allocations: 0 / 447.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000334/0.3031, allocations: 67.89 kB / 447.1 MB, free: 6.953 MB / 350.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.001098/0.3042, allocations: 0.8051 MB / 447.9 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.3052, allocations: 398.7 kB / 448.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3052, allocations: 4.062 kB / 448.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004857/0.3057, allocations: 214.5 kB / 448.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.306, allocations: 53.67 kB / 448.6 MB, free: 5.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005111/0.3111, allocations: 3.152 MB / 451.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.3115, allocations: 0.7558 MB / 452.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001288/0.3116, allocations: 38.94 kB / 452.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.3118, allocations: 87.41 kB / 452.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3118, allocations: 0 / 452.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.344, allocations: 6.331 MB / 458.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.69, allocations: 12.05 kB / 459 MB, free: 11 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.012586304044817] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 11.85855982702924 11.885107469 11.595098411 Calling exit ...