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.00172/0.00172, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.002106/0.002106, allocations: 217.3 kB / 24.47 MB, free: 4.359 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.564/1.564, allocations: 230.4 MB / 258 MB, free: 8.184 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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [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.002046/0.002046, allocations: 67.89 kB / 378.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3485, allocations: 53.31 MB / 432 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003472/0.352, allocations: 1.629 MB / 433.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.3532, allocations: 0.5571 MB / 434.2 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.3533, allocations: 4 kB / 434.2 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.11e-05/0.3533, allocations: 7.922 kB / 434.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.3535, allocations: 15.86 kB / 434.3 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003626/0.3539, allocations: 59.81 kB / 434.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.354, allocations: 55.78 kB / 434.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.3541, allocations: 15.98 kB / 434.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.3542, allocations: 23.92 kB / 434.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.789e-05/0.3543, allocations: 19.86 kB / 434.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.3543, allocations: 4 kB / 434.4 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.825e-05/0.3544, allocations: 15.94 kB / 434.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.59e-05/0.3544, allocations: 19.91 kB / 434.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.885e-05/0.3545, allocations: 35.73 kB / 434.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.3546, allocations: 69.22 kB / 434.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3546, allocations: 0 / 434.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3546, allocations: 0 / 434.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.3546, allocations: 0 / 434.6 MB, free: 4.883 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.0005649/0.3552, allocations: 383 kB / 434.9 MB, free: 4.461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.3552, allocations: 8.031 kB / 435 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.3554, allocations: 20.88 kB / 435 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.3557, allocations: 200.2 kB / 435.2 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.3557, allocations: 12.31 kB / 435.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.3557, allocations: 384 / 435.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003217/0.356, allocations: 146.2 kB / 435.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.356, allocations: 0 / 435.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.356, allocations: 0 / 435.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.356, allocations: 4 kB / 435.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.815e-05/0.3561, allocations: 27.86 kB / 435.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003903/0.3565, allocations: 286.5 kB / 435.6 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002619/0.3568, allocations: 156.8 kB / 435.8 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.997e-05/0.3569, allocations: 34.69 kB / 435.8 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.3569, allocations: 4 kB / 435.8 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.3569, allocations: 38.5 kB / 435.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.3569, allocations: 0 / 435.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002961/0.3572, allocations: 93.55 kB / 436 MB, free: 3.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.3573, allocations: 110.8 kB / 436.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.3575, allocations: 140.4 kB / 436.2 MB, free: 2.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.3575, allocations: 33.95 kB / 436.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.368e-05/0.3575, allocations: 88.14 kB / 436.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.3576, allocations: 11.94 kB / 436.3 MB, free: 2.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.086e-05/0.3576, allocations: 17.72 kB / 436.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3578, allocations: 326.8 kB / 436.7 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.1e-05/0.3578, allocations: 12 kB / 436.7 MB, free: 2.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.986e-05/0.3579, allocations: 52.22 kB / 436.7 MB, free: 2.418 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.358, allocations: 60.41 kB / 436.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.358, allocations: 0 / 436.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001803/0.3582, allocations: 101.5 kB / 436.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3582, allocations: 10.97 kB / 436.9 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3582, allocations: 0 / 436.9 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.3582, allocations: 0 / 436.9 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.042e-05/0.3583, allocations: 8 kB / 436.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3583, allocations: 4 kB / 436.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.299e-05/0.3584, allocations: 11.94 kB / 436.9 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.3584, allocations: 0 / 436.9 MB, free: 2.207 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.000115/0.3585, allocations: 129.8 kB / 437.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.176e-05/0.3586, allocations: 61.58 kB / 437.1 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.658e-05/0.3586, allocations: 8.25 kB / 437.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.3586, allocations: 7.984 kB / 437.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3586, allocations: 0 / 437.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3586, allocations: 0 / 437.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002079/0.3588, allocations: 173.6 kB / 437.3 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.3588, allocations: 4 kB / 437.3 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.589e-05/0.3589, allocations: 7.984 kB / 437.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.3589, allocations: 7.938 kB / 437.3 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.3589, allocations: 4 kB / 437.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3589, allocations: 0 / 437.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3589, allocations: 7.938 kB / 437.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002193/0.3591, allocations: 189.1 kB / 437.5 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.979e-05/0.3592, allocations: 97.03 kB / 437.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.3592, allocations: 8 kB / 437.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.944e-05/0.3593, allocations: 0 / 437.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.196e-05/0.3593, allocations: 4 kB / 437.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.3593, allocations: 0 / 437.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.213e-05/0.3594, allocations: 114.3 kB / 437.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3594, allocations: 0 / 437.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.3597, allocations: 12 kB / 437.7 MB, free: 1.281 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.0001332/0.3598, allocations: 99.31 kB / 437.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001828/0.36, allocations: 59.78 kB / 437.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.36, allocations: 0 / 437.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.781e-05/0.36, allocations: 15.98 kB / 437.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.3604, allocations: 23.2 kB / 437.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003953/0.3608, allocations: 208.1 kB / 438.1 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.3611, allocations: 0.7002 MB / 438.8 MB, free: 120 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.555e-05/0.3611, allocations: 8.094 kB / 438.8 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.418e-05/0.3612, allocations: 15.44 kB / 438.9 MB, free: 96 kB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3612, allocations: 0 / 438.9 MB, free: 96 kB / 334.1 MB Notification: Performance of Templates: time 0.003402/0.3646, allocations: 0.6541 MB / 439.5 MB, free: 15.47 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (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 & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9230309831909835]