Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001272/0.001272, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.001395/0.001395, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.426/1.426, allocations: 230.6 MB / 258.3 MB, free: 8.066 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-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002858/0.002858, allocations: 60.77 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2641, allocations: 53.37 MB / 432 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004458/0.2685, allocations: 2.938 MB / 434.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.2701, allocations: 0.7478 MB / 435.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.2703, allocations: 7.938 kB / 435.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001842/0.2705, allocations: 55.5 kB / 435.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.2707, allocations: 99.19 kB / 435.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.271, allocations: 103.8 kB / 435.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004533/0.2714, allocations: 394.5 kB / 436.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.2717, allocations: 100.5 kB / 436.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/0.2719, allocations: 151.4 kB / 436.5 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.2721, allocations: 175.2 kB / 436.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.822e-05/0.2721, allocations: 40 kB / 436.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.574e-05/0.2722, allocations: 36 kB / 436.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.979e-05/0.2723, allocations: 79.69 kB / 436.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.2725, allocations: 171.1 kB / 437 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005183/0.273, allocations: 398.4 kB / 437.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.273, allocations: 0 / 437.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.041e-06/0.273, allocations: 0 / 437.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.273, allocations: 4 kB / 437.4 MB, free: 1.414 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.001305/0.2743, allocations: 0.613 MB / 438 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2743, allocations: 8.031 kB / 438 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.561e-05/0.2744, allocations: 58.73 kB / 438.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.122e-05/0.2745, allocations: 36.7 kB / 438.1 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.2749, allocations: 245.9 kB / 438.4 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.2749, allocations: 16.88 kB / 438.4 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.28e-05/0.275, allocations: 20.38 kB / 438.4 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006967/0.2757, allocations: 322.8 kB / 438.7 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.2757, allocations: 4 kB / 438.7 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.549e-05/0.2757, allocations: 8 kB / 438.7 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.2757, allocations: 8 kB / 438.7 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007925/0.2765, allocations: 269.8 kB / 439 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.2784, allocations: 1.099 MB / 440.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007671/0.2791, allocations: 198.5 kB / 440.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.2794, allocations: 84.78 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.2794, allocations: 8 kB / 440.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004413/0.2799, allocations: 161 kB / 440.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.2799, allocations: 0 / 440.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001192/0.2811, allocations: 342.1 kB / 440.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.2811, allocations: 77.11 kB / 440.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003905/0.2815, allocations: 332.5 kB / 441.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.2816, allocations: 29.7 kB / 441.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/0.2817, allocations: 215.8 kB / 441.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.494e-05/0.2818, allocations: 31.73 kB / 441.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.731e-05/0.2819, allocations: 61.88 kB / 441.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.2821, allocations: 334.8 kB / 441.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003394/0.2824, allocations: 100.2 kB / 442 MB, free: 12.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.2828, allocations: 215.7 kB / 442.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007227/0.2835, allocations: 328 kB / 442.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.2835, allocations: 0 / 442.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009509/0.2845, allocations: 407.8 kB / 443 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.593e-05/0.2845, allocations: 37.7 kB / 443 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2845, allocations: 4 kB / 443 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001814/0.2847, allocations: 28.83 kB / 443 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/0.285, allocations: 72.03 kB / 443.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.2862, allocations: 1.303 MB / 444.4 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003559/0.2866, allocations: 55.7 kB / 444.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.2866, allocations: 15.98 kB / 444.5 MB, free: 9.836 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.000179/0.2868, allocations: 153.7 kB / 444.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.092e-05/0.2869, allocations: 31.81 kB / 444.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.684e-05/0.2869, allocations: 30.59 kB / 444.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.2869, allocations: 0 / 444.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2869, allocations: 7.938 kB / 444.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.2869, allocations: 0 / 444.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000485/0.2874, allocations: 418.7 kB / 445.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2874, allocations: 0 / 445.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.2876, allocations: 43.92 kB / 445.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001064/0.2877, allocations: 28.78 kB / 445.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.2877, allocations: 3.938 kB / 445.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.2888, allocations: 1.295 MB / 446.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2888, allocations: 0 / 446.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007864/0.2896, allocations: 270.5 kB / 446.7 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.11e-05/0.2896, allocations: 31.84 kB / 446.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.833e-05/0.2897, allocations: 4 kB / 446.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.2899, allocations: 23.97 kB / 446.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.517e-05/0.29, allocations: 23.91 kB / 446.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.29, allocations: 4 kB / 446.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002722/0.2903, allocations: 227.1 kB / 447 MB, free: 7.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2903, allocations: 4 kB / 447 MB, free: 7.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003625/0.2906, allocations: 71.89 kB / 447.1 MB, free: 6.988 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.001095/0.2917, allocations: 0.809 MB / 447.9 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.2928, allocations: 401.7 kB / 448.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2928, allocations: 1 kB / 448.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004937/0.2933, allocations: 214.8 kB / 448.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.2936, allocations: 51.09 kB / 448.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005158/0.2988, allocations: 3.144 MB / 451.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.2992, allocations: 0.7518 MB / 452.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.2993, allocations: 38.97 kB / 452.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.2995, allocations: 87.41 kB / 452.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of SimCode: time 1.342e-06/0.2995, allocations: 0 / 452.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0377/0.3372, allocations: 6.253 MB / 458.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.47, allocations: 15.98 kB / 458.9 MB, free: 11.09 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.870585521217436] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 10.556067978963256 10.570456614 10.294145805 Calling exit ...