Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001329/0.001329, allocations: 212.7 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 230.5 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 67.91 kB / 378.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2977, allocations: 53.39 MB / 431.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004733/0.3024, allocations: 2.735 MB / 434.7 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3039, allocations: 0.6933 MB / 435.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.3041, allocations: 7.938 kB / 435.4 MB, free: 3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.3042, allocations: 51.44 kB / 435.4 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.3045, allocations: 103.2 kB / 435.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003567/0.3049, allocations: 103.8 kB / 435.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.3054, allocations: 382.5 kB / 436 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002824/0.3057, allocations: 96.45 kB / 436.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002014/0.3059, allocations: 155.4 kB / 436.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002924/0.3062, allocations: 183.2 kB / 436.4 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.84e-05/0.3062, allocations: 36 kB / 436.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.457e-05/0.3063, allocations: 36 kB / 436.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.232e-05/0.3064, allocations: 75.7 kB / 436.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.3066, allocations: 147.3 kB / 436.7 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005449/0.3071, allocations: 410.3 kB / 437.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3071, allocations: 4 kB / 437.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3071, allocations: 0 / 437.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.3072, allocations: 0 / 437.1 MB, free: 1.25 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001341/0.3085, allocations: 0.5975 MB / 437.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.906e-05/0.3086, allocations: 20.02 kB / 437.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.346e-05/0.3086, allocations: 4.844 kB / 437.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.271e-05/0.3086, allocations: 66.72 kB / 437.8 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.183e-05/0.3087, allocations: 36.75 kB / 437.8 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.3093, allocations: 243 kB / 438.1 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/0.3093, allocations: 25.02 kB / 438.1 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.3093, allocations: 24.38 kB / 438.1 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007231/0.3101, allocations: 311.8 kB / 438.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3101, allocations: 0 / 438.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.3101, allocations: 12 kB / 438.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.3101, allocations: 8 kB / 438.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006719/0.3108, allocations: 246.5 kB / 438.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001793/0.3126, allocations: 0.9438 MB / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006125/0.3132, allocations: 178.5 kB / 439.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002479/0.3134, allocations: 76.8 kB / 439.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.3135, allocations: 0 / 439.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004701/0.3139, allocations: 179.6 kB / 440.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.933e-06/0.3139, allocations: 0 / 440.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.001157/0.3151, allocations: 306 kB / 440.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.3152, allocations: 111.2 kB / 440.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004144/0.3156, allocations: 328.5 kB / 440.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/0.3157, allocations: 37.64 kB / 440.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/0.3158, allocations: 216 kB / 441 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.367e-05/0.3159, allocations: 39.69 kB / 441.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002132/0.3161, allocations: 65.64 kB / 441.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.3163, allocations: 334.8 kB / 441.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003054/0.3166, allocations: 121.6 kB / 441.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003915/0.317, allocations: 254.8 kB / 441.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006168/0.3176, allocations: 312 kB / 442.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.3176, allocations: 4 kB / 442.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008793/0.3185, allocations: 424.6 kB / 442.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.643e-05/0.3185, allocations: 36.2 kB / 442.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3185, allocations: 4 kB / 442.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001902/0.3187, allocations: 28.84 kB / 442.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.319, allocations: 59.89 kB / 442.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.3201, allocations: 1.299 MB / 444 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.3205, allocations: 55.69 kB / 444 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.3205, allocations: 16 kB / 444.1 MB, free: 9.77 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: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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.0001739/0.3207, allocations: 152.1 kB / 444.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.641e-05/0.3207, allocations: 31.94 kB / 444.2 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.875e-05/0.3208, allocations: 34.61 kB / 444.3 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3208, allocations: 7.938 kB / 444.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3208, allocations: 0 / 444.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3208, allocations: 0 / 444.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000497/0.3213, allocations: 402.3 kB / 444.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3213, allocations: 0 / 444.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.3215, allocations: 31.84 kB / 444.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001061/0.3216, allocations: 28.88 kB / 444.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.3216, allocations: 7.984 kB / 444.7 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.3226, allocations: 1.283 MB / 446 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3226, allocations: 0 / 446 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006314/0.3233, allocations: 254.6 kB / 446.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-05/0.3233, allocations: 31.8 kB / 446.3 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/0.3234, allocations: 11.94 kB / 446.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.3236, allocations: 27.89 kB / 446.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.013e-05/0.3237, allocations: 27.95 kB / 446.4 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.3237, allocations: 4 kB / 446.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002568/0.3239, allocations: 227.1 kB / 446.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3239, allocations: 4 kB / 446.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003446/0.3243, allocations: 71.94 kB / 446.7 MB, free: 6.961 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: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,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 (12): * Single equations (assignments): 9 * 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.00109/0.3254, allocations: 0.7888 MB / 447.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009361/0.3263, allocations: 415.5 kB / 447.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3263, allocations: 1 kB / 447.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.3267, allocations: 210.6 kB / 448.1 MB, free: 5.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.3271, allocations: 56.98 kB / 448.1 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004937/0.332, allocations: 3.243 MB / 451.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.3322, allocations: 147.8 kB / 451.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001554/0.3323, allocations: 42.89 kB / 451.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.3325, allocations: 91.41 kB / 451.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3325, allocations: 4 kB / 451.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04995/0.3825, allocations: 6.899 MB / 458.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.93, allocations: 7.984 kB / 458.6 MB, free: 10.92 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.301747640012763] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 12.098455265979283 12.124142008 11.812094426 Calling exit ...