Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.00118/0.00118, 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.001257/0.001257, allocations: 221.7 kB / 22.92 MB, free: 5.535 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.281/1.281, 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.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",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.001756/0.001756, allocations: 67.84 kB / 376.1 MB, free: 4.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2241, allocations: 53.31 MB / 429.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002664/0.2267, allocations: 1.62 MB / 431 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009787/0.2277, allocations: 0.5726 MB / 431.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.516e-05/0.2278, allocations: 0 / 431.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.056e-05/0.2279, allocations: 7.875 kB / 431.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.228, allocations: 11.88 kB / 431.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.2283, allocations: 67.69 kB / 431.7 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001156/0.2284, allocations: 51.89 kB / 431.7 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.182e-05/0.2285, allocations: 15.92 kB / 431.7 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.2286, allocations: 35.8 kB / 431.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.974e-05/0.2287, allocations: 23.86 kB / 431.8 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.2287, allocations: 7.984 kB / 431.8 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.341e-05/0.2287, allocations: 8 kB / 431.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.603e-05/0.2288, allocations: 11.98 kB / 431.8 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.079e-05/0.2288, allocations: 31.75 kB / 431.9 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.229, allocations: 68.08 kB / 431.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.229, allocations: 0 / 431.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.229, allocations: 0 / 431.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.229, allocations: 4 kB / 431.9 MB, free: 4.91 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004927/0.2295, allocations: 387 kB / 432.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2295, allocations: 8.031 kB / 432.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.408e-05/0.2296, allocations: 38.73 kB / 432.4 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.2297, allocations: 16.89 kB / 432.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.2299, allocations: 204.2 kB / 432.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.23, allocations: 4.375 kB / 432.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.23, allocations: 4.375 kB / 432.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000283/0.2303, allocations: 134 kB / 432.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.2303, allocations: 3.938 kB / 432.7 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.2303, allocations: 7.984 kB / 432.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.2303, allocations: 4 kB / 432.7 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.384e-05/0.2304, allocations: 23.98 kB / 432.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003262/0.2307, allocations: 278.5 kB / 433 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002154/0.2309, allocations: 160.8 kB / 433.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.42e-05/0.231, allocations: 38.69 kB / 433.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.231, allocations: 4 kB / 433.2 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.231, allocations: 30.56 kB / 433.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.231, allocations: 0 / 433.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002691/0.2313, allocations: 101.5 kB / 433.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.503e-05/0.2314, allocations: 110.8 kB / 433.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.2315, allocations: 144.6 kB / 433.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.2315, allocations: 25.7 kB / 433.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.6e-05/0.2316, allocations: 84.14 kB / 433.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.2316, allocations: 16.14 kB / 433.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.825e-05/0.2316, allocations: 25.7 kB / 433.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.2317, allocations: 322.8 kB / 434.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.937e-05/0.2318, allocations: 11.98 kB / 434.1 MB, free: 2.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.27e-05/0.2319, allocations: 44.28 kB / 434.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.232, allocations: 64.22 kB / 434.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.232, allocations: 0 / 434.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001559/0.2321, allocations: 89.67 kB / 434.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.2321, allocations: 8 kB / 434.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.2321, allocations: 4.125 kB / 434.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.2322, allocations: 4 kB / 434.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.568e-05/0.2322, allocations: 15.92 kB / 434.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.2322, allocations: 4 kB / 434.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.04e-05/0.2323, allocations: 15.94 kB / 434.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.2323, allocations: 0 / 434.3 MB, free: 2.188 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.2324, allocations: 125.8 kB / 434.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.451e-05/0.2325, allocations: 53.64 kB / 434.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.61e-05/0.2325, allocations: 12.25 kB / 434.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2325, allocations: 4 kB / 434.5 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2325, allocations: 3.938 kB / 434.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2325, allocations: 0 / 434.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.2327, allocations: 189.5 kB / 434.7 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2327, allocations: 4 kB / 434.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.381e-05/0.2328, allocations: 11.98 kB / 434.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2328, allocations: 0 / 434.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.2328, allocations: 0 / 434.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.2328, allocations: 4 kB / 434.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2328, allocations: 0 / 434.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002012/0.233, allocations: 193.1 kB / 434.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.702e-05/0.2331, allocations: 93.05 kB / 435 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.2331, allocations: 4 kB / 435 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.977e-05/0.2331, allocations: 7.984 kB / 435 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.269e-05/0.2332, allocations: 0 / 435 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.2332, allocations: 8 kB / 435 MB, free: 1.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.306e-05/0.2332, allocations: 107.2 kB / 435.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2332, allocations: 0 / 435.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.2335, allocations: 12 kB / 435.1 MB, free: 1.254 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000553/0.234, allocations: 0.7453 MB / 435.9 MB, free: 488 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001489/0.2342, allocations: 43.91 kB / 435.9 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2342, allocations: 4 kB / 435.9 MB, free: 440 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.913e-05/0.2342, allocations: 8 kB / 435.9 MB, free: 432 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.2345, allocations: 32.5 kB / 436 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.2359, allocations: 1.477 MB / 437.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.2362, allocations: 0.6924 MB / 438.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.331e-05/0.2362, allocations: 8.062 kB / 438.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.787e-05/0.2363, allocations: 27.42 kB / 438.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2363, allocations: 0 / 438.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02444/0.2607, allocations: 1.768 MB / 439.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.936/7.196, allocations: 7.172 kB / 439.9 MB, free: 12.39 MB / 350.1 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.263491184996383]