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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.394/1.394, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB 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.001935/0.001935, allocations: 68.09 kB / 358.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2632, allocations: 50.54 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004369/0.2676, allocations: 2.913 MB / 412 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.2691, allocations: 0.7284 MB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.2693, allocations: 4 kB / 412.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.2695, allocations: 43.52 kB / 412.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002083/0.2697, allocations: 99.17 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.27, allocations: 115.8 kB / 413 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004314/0.2705, allocations: 394.5 kB / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.2707, allocations: 131.9 kB / 413.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.2709, allocations: 151.4 kB / 413.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.2711, allocations: 175.2 kB / 413.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.161e-05/0.2712, allocations: 40 kB / 413.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.947e-05/0.2712, allocations: 36 kB / 413.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.564e-05/0.2713, allocations: 75.7 kB / 414 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.2715, allocations: 167.1 kB / 414.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004513/0.272, allocations: 397.4 kB / 414.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.272, allocations: 4 kB / 414.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.272, allocations: 4 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.272, allocations: 0 / 414.5 MB, free: 11.89 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.001317/0.2733, allocations: 0.6923 MB / 415.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2734, allocations: 8.031 kB / 415.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.621e-05/0.2734, allocations: 58.73 kB / 415.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.372e-05/0.2735, allocations: 40.69 kB / 415.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004338/0.274, allocations: 295.8 kB / 415.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.274, allocations: 12.94 kB / 415.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.353e-05/0.274, allocations: 28.38 kB / 415.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007028/0.2748, allocations: 319.8 kB / 416 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.2748, allocations: 7.984 kB / 416 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/0.2748, allocations: 15.94 kB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.2748, allocations: 8 kB / 416 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008/0.2756, allocations: 270.1 kB / 416.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.2775, allocations: 1.142 MB / 417.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008089/0.2783, allocations: 210.5 kB / 417.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003117/0.2786, allocations: 88.73 kB / 417.7 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.2787, allocations: 3.938 kB / 417.7 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004394/0.2791, allocations: 165 kB / 417.9 MB, free: 8.324 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.2791, allocations: 0 / 417.9 MB, free: 8.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.00129/0.2804, allocations: 411.3 kB / 418.3 MB, free: 7.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/0.2805, allocations: 85.14 kB / 418.4 MB, free: 7.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003624/0.2809, allocations: 324.5 kB / 418.7 MB, free: 7.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.2809, allocations: 33.7 kB / 418.7 MB, free: 7.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.2811, allocations: 207.9 kB / 418.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.691e-05/0.2811, allocations: 39.73 kB / 419 MB, free: 7.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.64e-05/0.2812, allocations: 53.88 kB / 419 MB, free: 7.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.2814, allocations: 338.8 kB / 419.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/0.2817, allocations: 100.2 kB / 419.4 MB, free: 6.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004245/0.2822, allocations: 214.9 kB / 419.6 MB, free: 6.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000759/0.2829, allocations: 335.9 kB / 420 MB, free: 6.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2829, allocations: 0 / 420 MB, free: 6.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009999/0.2839, allocations: 407.3 kB / 420.4 MB, free: 5.633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.904e-05/0.284, allocations: 37.77 kB / 420.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.284, allocations: 4 kB / 420.4 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001726/0.2842, allocations: 28.84 kB / 420.4 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/0.2845, allocations: 63.88 kB / 420.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.2856, allocations: 1.402 MB / 421.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003351/0.286, allocations: 55.91 kB / 422 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.286, allocations: 12 kB / 422 MB, free: 3.875 MB / 334.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.0001637/0.2862, allocations: 151.2 kB / 422.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.151e-05/0.2862, allocations: 27.81 kB / 422.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.171e-05/0.2863, allocations: 30.59 kB / 422.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.2863, allocations: 0 / 422.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.2863, allocations: 12.25 kB / 422.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2863, allocations: 4 kB / 422.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004713/0.2868, allocations: 455.2 kB / 422.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2868, allocations: 4 kB / 422.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.287, allocations: 35.89 kB / 422.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001026/0.2871, allocations: 32.81 kB / 422.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.2871, allocations: 0 / 422.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.2882, allocations: 1.395 MB / 424.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2882, allocations: 0 / 424.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007561/0.289, allocations: 270.5 kB / 424.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.825e-05/0.2891, allocations: 108.9 kB / 424.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.733e-05/0.2891, allocations: 4 kB / 424.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.2894, allocations: 23.97 kB / 424.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.176e-05/0.2894, allocations: 27.84 kB / 424.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.2895, allocations: 8 kB / 424.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002532/0.2897, allocations: 227.1 kB / 424.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2897, allocations: 0 / 424.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003405/0.2901, allocations: 67.89 kB / 424.8 MB, free: 0.7734 MB / 334.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.001122/0.2912, allocations: 0.8091 MB / 425.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.2922, allocations: 406 kB / 426 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2922, allocations: 0 / 426 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004829/0.2927, allocations: 231.4 kB / 426.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.2931, allocations: 37.08 kB / 426.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004975/0.2981, allocations: 3.149 MB / 429.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.2984, allocations: 0.7519 MB / 430.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.2986, allocations: 34.95 kB / 430.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.2987, allocations: 87.39 kB / 430.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.595e-06/0.2987, allocations: 8 kB / 430.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03135/0.3301, allocations: 6.093 MB / 436.4 MB, free: 5.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.776/10.11, allocations: 15.48 kB / 436.4 MB, free: 5.051 MB / 350.1 MB (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)