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.00186/0.00186, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.002238/0.002238, allocations: 215.2 kB / 21.46 MB, free: 1.59 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.454/1.454, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.001962/0.001962, allocations: 71.83 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09927/0.1012, allocations: 53.34 MB / 427.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004246/0.1055, allocations: 2.914 MB / 430 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.1069, allocations: 0.7401 MB / 430.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.107, allocations: 8 kB / 430.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.1072, allocations: 55.44 kB / 430.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002065/0.1074, allocations: 99.19 kB / 430.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.1077, allocations: 107.8 kB / 431 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004385/0.1081, allocations: 386.5 kB / 431.3 MB, free: 440 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.1083, allocations: 91.94 kB / 431.4 MB, free: 344 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.1085, allocations: 159.4 kB / 431.6 MB, free: 184 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.1087, allocations: 175.3 kB / 431.8 MB, free: 8 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1869/0.2956, allocations: 34.67 kB / 431.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.2957, allocations: 34.72 kB / 431.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.871e-05/0.2958, allocations: 72.47 kB / 431.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.296, allocations: 171.3 kB / 432.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004726/0.2964, allocations: 398.8 kB / 432.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2964, allocations: 0.8438 kB / 432.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2964, allocations: 0 / 432.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.2965, allocations: 5.062 kB / 432.5 MB, free: 7.895 MB / 350.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.001222/0.2977, allocations: 0.6815 MB / 433.1 MB, free: 7.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.2977, allocations: 14.53 kB / 433.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.128e-05/0.2978, allocations: 62 kB / 433.2 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.056e-05/0.2978, allocations: 38.36 kB / 433.3 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.2982, allocations: 300.9 kB / 433.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.2982, allocations: 17.88 kB / 433.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.76e-05/0.2983, allocations: 25.53 kB / 433.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006471/0.2989, allocations: 324.2 kB / 433.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.2989, allocations: 0 / 433.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.2989, allocations: 10.41 kB / 433.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.2989, allocations: 7.312 kB / 433.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007259/0.2997, allocations: 276.9 kB / 434.2 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.3012, allocations: 1.136 MB / 435.3 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007744/0.3019, allocations: 201.4 kB / 435.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000295/0.3022, allocations: 88.03 kB / 435.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.3023, allocations: 4.938 kB / 435.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004096/0.3027, allocations: 156.6 kB / 435.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.3027, allocations: 0 / 435.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001247/0.3039, allocations: 413.3 kB / 436.2 MB, free: 6.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.801e-05/0.3039, allocations: 79.28 kB / 436.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003237/0.3043, allocations: 330.4 kB / 436.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.3043, allocations: 30.05 kB / 436.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.3044, allocations: 218.2 kB / 436.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.758e-05/0.3044, allocations: 43.92 kB / 436.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.718e-05/0.3045, allocations: 52.53 kB / 436.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.813e-05/0.3046, allocations: 339.9 kB / 437.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003536/0.3049, allocations: 95.69 kB / 437.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003736/0.3053, allocations: 213.1 kB / 437.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006808/0.306, allocations: 327.8 kB / 437.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.306, allocations: 1.312 kB / 437.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009345/0.3069, allocations: 410.7 kB / 438.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.3069, allocations: 34.22 kB / 438.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.3069, allocations: 4.812 kB / 438.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000168/0.3071, allocations: 37.19 kB / 438.3 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.3074, allocations: 61.59 kB / 438.4 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007046/0.3081, allocations: 1.407 MB / 439.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.3084, allocations: 57.25 kB / 439.9 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.3085, allocations: 11.61 kB / 439.9 MB, free: 3.668 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.0001121/0.3086, allocations: 154.1 kB / 440 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.3086, allocations: 27.08 kB / 440.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.535e-05/0.3087, allocations: 30.44 kB / 440.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3087, allocations: 1.875 kB / 440.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3087, allocations: 9.531 kB / 440.1 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3087, allocations: 1.891 kB / 440.1 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003675/0.309, allocations: 448.7 kB / 440.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.309, allocations: 4.688 kB / 440.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001776/0.3092, allocations: 29.66 kB / 440.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.549e-05/0.3093, allocations: 33.22 kB / 440.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.3093, allocations: 6.406 kB / 440.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006369/0.31, allocations: 1.39 MB / 442 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.31, allocations: 1.281 kB / 442 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007349/0.3107, allocations: 280.2 kB / 442.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.547e-05/0.3108, allocations: 108.4 kB / 442.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.737e-05/0.3108, allocations: 4.719 kB / 442.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.311, allocations: 25.33 kB / 442.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.813e-05/0.3111, allocations: 22.72 kB / 442.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.3111, allocations: 6.203 kB / 442.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.3113, allocations: 236.6 kB / 442.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3113, allocations: 0 / 442.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003449/0.3117, allocations: 72.52 kB / 442.7 MB, free: 1.539 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.0009112/0.3126, allocations: 0.8006 MB / 443.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009668/0.3135, allocations: 402.7 kB / 443.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3135, allocations: 4.062 kB / 443.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004572/0.314, allocations: 212.7 kB / 444.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.3143, allocations: 40.34 kB / 444.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005041/0.3194, allocations: 3.153 MB / 447.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.3197, allocations: 0.7542 MB / 448.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001424/0.3199, allocations: 31.95 kB / 448.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.32, allocations: 91.5 kB / 448.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.32, allocations: 0 / 448.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03433/0.3544, allocations: 6.152 MB / 454.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.872/10.23, allocations: 1.375 kB / 454.4 MB, free: 12.69 MB / 366.1 MB " [Timeout remaining time 650] (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.689656015019864] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 10.307812471408397 10.322675575 10.023341211 Calling exit ...