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.002065/0.002065, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002832/0.002832, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.448/1.448, 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-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.001932/0.001932, allocations: 68.7 kB / 378.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2804, allocations: 53.37 MB / 432 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004406/0.2848, allocations: 2.932 MB / 434.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.2863, allocations: 0.7401 MB / 435.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.2864, allocations: 7.938 kB / 435.6 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.2866, allocations: 51.5 kB / 435.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002053/0.2868, allocations: 103.2 kB / 435.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.2871, allocations: 111.8 kB / 435.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004465/0.2876, allocations: 394.5 kB / 436.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.2878, allocations: 96.41 kB / 436.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001929/0.288, allocations: 151.4 kB / 436.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.2882, allocations: 179.2 kB / 436.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.196e-05/0.2883, allocations: 36 kB / 436.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.592e-05/0.2883, allocations: 36 kB / 436.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.251e-05/0.2884, allocations: 79.75 kB / 436.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.2886, allocations: 171.1 kB / 437 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000492/0.289, allocations: 395.2 kB / 437.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2891, allocations: 3.938 kB / 437.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2891, allocations: 0 / 437.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.2891, allocations: 0 / 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.001314/0.2904, allocations: 0.613 MB / 438 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.2904, allocations: 12.03 kB / 438 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.222e-05/0.2905, allocations: 62.72 kB / 438.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.136e-05/0.2906, allocations: 36.7 kB / 438.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000426/0.291, allocations: 234 kB / 438.4 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.291, allocations: 20.88 kB / 438.4 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.506e-05/0.2911, allocations: 28.31 kB / 438.4 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006844/0.2918, allocations: 318.8 kB / 438.7 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2918, allocations: 4 kB / 438.7 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.61e-05/0.2918, allocations: 8 kB / 438.7 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.2918, allocations: 4 kB / 438.7 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007832/0.2926, allocations: 273.9 kB / 439 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001821/0.2944, allocations: 1.103 MB / 440.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007692/0.2952, allocations: 202.5 kB / 440.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002936/0.2955, allocations: 88.78 kB / 440.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.2955, allocations: 4 kB / 440.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004349/0.2959, allocations: 157.1 kB / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.2959, allocations: 0 / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001226/0.2971, allocations: 338.1 kB / 440.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.37e-05/0.2972, allocations: 89.05 kB / 441 MB, free: 13.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/0.2976, allocations: 320.5 kB / 441.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.2976, allocations: 29.7 kB / 441.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.2978, allocations: 215.8 kB / 441.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.2978, allocations: 31.73 kB / 441.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.749e-05/0.2979, allocations: 61.89 kB / 441.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.2981, allocations: 334.8 kB / 441.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/0.2984, allocations: 100.1 kB / 442 MB, free: 12.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004039/0.2988, allocations: 207.7 kB / 442.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007132/0.2995, allocations: 339.9 kB / 442.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2995, allocations: 0 / 442.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009713/0.3005, allocations: 411.1 kB / 443 MB, free: 11.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/0.3005, allocations: 37.7 kB / 443 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3005, allocations: 4 kB / 443 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/0.3007, allocations: 32.83 kB / 443 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.301, allocations: 68.05 kB / 443.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.3022, allocations: 1.299 MB / 444.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/0.3025, allocations: 55.7 kB / 444.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.845e-05/0.3025, allocations: 19.92 kB / 444.5 MB, free: 9.828 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.0001787/0.3027, allocations: 152.8 kB / 444.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.408e-05/0.3028, allocations: 39.81 kB / 444.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.295e-05/0.3028, allocations: 22.61 kB / 444.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3028, allocations: 4 kB / 444.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3028, allocations: 3.938 kB / 444.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.3028, allocations: 0 / 444.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004916/0.3033, allocations: 418.3 kB / 445.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3033, allocations: 0 / 445.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.3035, allocations: 32 kB / 445.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001135/0.3036, allocations: 36.7 kB / 445.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.3036, allocations: 4 kB / 445.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.3047, allocations: 1.291 MB / 446.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3047, allocations: 3.938 kB / 446.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007252/0.3054, allocations: 270.9 kB / 446.7 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.543e-05/0.3055, allocations: 31.94 kB / 446.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.3055, allocations: 7.938 kB / 446.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.3057, allocations: 27.95 kB / 446.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.082e-05/0.3058, allocations: 19.92 kB / 446.8 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.3058, allocations: 7.984 kB / 446.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002676/0.3061, allocations: 227.1 kB / 447 MB, free: 7.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3061, allocations: 0 / 447 MB, free: 7.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003605/0.3065, allocations: 75.89 kB / 447.1 MB, free: 6.98 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.001079/0.3075, allocations: 0.8051 MB / 447.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.3086, allocations: 397.7 kB / 448.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3086, allocations: 5 kB / 448.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004787/0.309, allocations: 210.6 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.0003618/0.3094, allocations: 57.53 kB / 448.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005117/0.3145, allocations: 3.144 MB / 451.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.3149, allocations: 0.7558 MB / 452.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001465/0.3151, allocations: 38.91 kB / 452.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.3152, allocations: 87.41 kB / 452.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3152, allocations: 0 / 452.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.35, allocations: 6.242 MB / 458.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.48, allocations: 10.33 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.973277982790023] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 10.571042709983885 10.589931264 10.297707614 Calling exit ...