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.001394/0.001394, allocations: 105.8 kB / 19.74 MB, free: 2.566 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.001515/0.001515, allocations: 218.4 kB / 22.92 MB, free: 5.539 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.274/1.274, allocations: 230.5 MB / 256.4 MB, free: 8.43 MB / 206.1 MB " [Timeout remaining time 179] 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.001744/0.001744, allocations: 67.89 kB / 376.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2147, allocations: 53.32 MB / 429.4 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003924/0.2187, allocations: 2.924 MB / 432.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.2199, allocations: 0.744 MB / 433.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.22, allocations: 8 kB / 433.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.2202, allocations: 51.5 kB / 433.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001906/0.2204, allocations: 95.19 kB / 433.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.2207, allocations: 115.8 kB / 433.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004167/0.2211, allocations: 394.4 kB / 433.8 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.2213, allocations: 91.91 kB / 433.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.2214, allocations: 151.4 kB / 434 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.2217, allocations: 175.2 kB / 434.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.695e-05/0.2217, allocations: 36 kB / 434.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.152e-05/0.2218, allocations: 36 kB / 434.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.836e-05/0.2219, allocations: 87.67 kB / 434.3 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.222, allocations: 163.1 kB / 434.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004063/0.2224, allocations: 402.8 kB / 434.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2224, allocations: 0 / 434.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2224, allocations: 0 / 434.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.2224, allocations: 0 / 434.9 MB, free: 1.961 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.001312/0.2238, allocations: 0.6922 MB / 435.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2238, allocations: 8.031 kB / 435.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.93e-05/0.2239, allocations: 62.72 kB / 435.6 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.175e-05/0.2239, allocations: 36.7 kB / 435.7 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000407/0.2243, allocations: 299.8 kB / 436 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.2244, allocations: 12.94 kB / 436 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.2244, allocations: 28.38 kB / 436 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000685/0.2251, allocations: 327.7 kB / 436.3 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2251, allocations: 4 kB / 436.3 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.2251, allocations: 8 kB / 436.3 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.2251, allocations: 8 kB / 436.3 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007668/0.2259, allocations: 270.1 kB / 436.6 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.2277, allocations: 1.134 MB / 437.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008003/0.2285, allocations: 206.5 kB / 437.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.2288, allocations: 84.78 kB / 438 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.2288, allocations: 4 kB / 438 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004257/0.2293, allocations: 155.9 kB / 438.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.2293, allocations: 3.938 kB / 438.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001272/0.2305, allocations: 419.4 kB / 438.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.2306, allocations: 81.09 kB / 438.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003423/0.2309, allocations: 324.5 kB / 439 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.231, allocations: 29.7 kB / 439 MB, free: 13.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.2311, allocations: 211.9 kB / 439.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.947e-05/0.2312, allocations: 39.72 kB / 439.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.21e-05/0.2312, allocations: 57.88 kB / 439.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.2314, allocations: 339.2 kB / 439.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003406/0.2317, allocations: 92.16 kB / 439.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004078/0.2321, allocations: 222.9 kB / 440 MB, free: 12.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007166/0.2329, allocations: 327.9 kB / 440.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.2329, allocations: 7.938 kB / 440.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009398/0.2338, allocations: 407.8 kB / 440.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.123e-05/0.2338, allocations: 33.7 kB / 440.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.2338, allocations: 4 kB / 440.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/0.234, allocations: 32.83 kB / 440.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.2343, allocations: 72.05 kB / 440.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/0.2354, allocations: 1.398 MB / 442.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003265/0.2357, allocations: 55.7 kB / 442.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.2357, allocations: 16 kB / 442.3 MB, free: 9.949 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.0001517/0.2359, allocations: 153.8 kB / 442.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.2359, allocations: 27.81 kB / 442.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.111e-05/0.236, allocations: 30.61 kB / 442.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.236, allocations: 0 / 442.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.236, allocations: 3.938 kB / 442.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.236, allocations: 0 / 442.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004294/0.2364, allocations: 447.2 kB / 442.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2364, allocations: 3.938 kB / 443 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.2366, allocations: 32 kB / 443 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.807e-05/0.2367, allocations: 28.78 kB / 443 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.2367, allocations: 7.984 kB / 443 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009769/0.2377, allocations: 1.395 MB / 444.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.2377, allocations: 0 / 444.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007169/0.2384, allocations: 274.5 kB / 444.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.737e-05/0.2385, allocations: 112.9 kB / 444.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.618e-05/0.2385, allocations: 3.984 kB / 444.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.2387, allocations: 27.97 kB / 444.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.465e-05/0.2388, allocations: 23.86 kB / 444.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.2388, allocations: 4 kB / 444.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002262/0.239, allocations: 227.1 kB / 445.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.239, allocations: 0 / 445.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.2393, allocations: 75.89 kB / 445.1 MB, free: 6.852 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.001018/0.2404, allocations: 0.8052 MB / 446 MB, free: 6.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009208/0.2413, allocations: 401.7 kB / 446.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.2413, allocations: 4.938 kB / 446.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004551/0.2417, allocations: 214.6 kB / 446.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.242, allocations: 45.33 kB / 446.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004572/0.2466, allocations: 3.156 MB / 449.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.2469, allocations: 0.7518 MB / 450.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.247, allocations: 34.97 kB / 450.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.2472, allocations: 87.41 kB / 450.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2472, allocations: 0 / 450.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03103/0.2782, allocations: 6.117 MB / 456.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.894/9.172, allocations: 16.14 kB / 456.8 MB, free: 11.08 MB / 366.1 MB " [Timeout remaining time 651] (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 --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: 11.25833708600112]