Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.673/1.673, allocations: 230.6 MB / 258.2 MB, free: 7.789 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 47.91 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4053, allocations: 53.35 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.004136/0.4095, allocations: 1.616 MB / 434 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.4109, allocations: 0.522 MB / 434.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.4111, allocations: 7.938 kB / 434.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.365e-05/0.4112, allocations: 7.922 kB / 434.5 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.4113, allocations: 7.938 kB / 434.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004699/0.4118, allocations: 71.67 kB / 434.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.412, allocations: 55.8 kB / 434.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.4122, allocations: 11.98 kB / 434.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.4123, allocations: 27.91 kB / 434.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.961e-05/0.4124, allocations: 23.86 kB / 434.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.4124, allocations: 4 kB / 434.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.449e-05/0.4125, allocations: 8 kB / 434.7 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.04e-05/0.4125, allocations: 15.92 kB / 434.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.438e-05/0.4126, allocations: 23.81 kB / 434.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002231/0.4128, allocations: 78.31 kB / 434.8 MB, free: 4.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.4128, allocations: 3.938 kB / 434.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.4128, allocations: 0 / 434.8 MB, free: 4.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.4128, allocations: 0 / 434.8 MB, free: 4.25 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.0007099/0.4135, allocations: 313.9 kB / 435.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.4136, allocations: 8.031 kB / 435.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.4138, allocations: 16.89 kB / 435.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.4142, allocations: 144.9 kB / 435.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.4142, allocations: 384 / 435.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.4142, allocations: 4.375 kB / 435.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004172/0.4146, allocations: 138.1 kB / 435.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.4146, allocations: 0 / 435.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.4146, allocations: 0 / 435.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.4146, allocations: 4 kB / 435.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.4147, allocations: 27.92 kB / 435.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004606/0.4152, allocations: 230.2 kB / 435.7 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.4155, allocations: 87.72 kB / 435.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.631e-05/0.4156, allocations: 34.62 kB / 435.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.4156, allocations: 3.984 kB / 435.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.4156, allocations: 34.56 kB / 435.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.283e-06/0.4156, allocations: 0 / 435.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003891/0.416, allocations: 101.5 kB / 435.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.4161, allocations: 110.8 kB / 436 MB, free: 2.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.4163, allocations: 145.8 kB / 436.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.4164, allocations: 25.7 kB / 436.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.057e-05/0.4164, allocations: 88.14 kB / 436.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.084e-05/0.4165, allocations: 7.953 kB / 436.3 MB, free: 2.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.504e-05/0.4165, allocations: 25.66 kB / 436.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.4167, allocations: 318.8 kB / 436.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.848e-05/0.4168, allocations: 15.98 kB / 436.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.012e-05/0.4169, allocations: 44.53 kB / 436.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.417, allocations: 64.22 kB / 436.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.417, allocations: 7.875 kB / 436.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001789/0.4172, allocations: 81.61 kB / 436.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.4172, allocations: 7.984 kB / 436.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.4172, allocations: 8.125 kB / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.4173, allocations: 0 / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.111e-05/0.4173, allocations: 11.94 kB / 436.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.4173, allocations: 4 kB / 436.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.591e-05/0.4174, allocations: 11.88 kB / 436.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.4174, allocations: 4 kB / 436.9 MB, free: 1.906 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.0001443/0.4176, allocations: 121.8 kB / 437 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.34e-05/0.4177, allocations: 53.64 kB / 437.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.536e-05/0.4177, allocations: 12.34 kB / 437.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.4177, allocations: 8 kB / 437.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4177, allocations: 7.938 kB / 437.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4177, allocations: 3.984 kB / 437.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.4179, allocations: 117.2 kB / 437.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4179, allocations: 0 / 437.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.638e-05/0.418, allocations: 15.98 kB / 437.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.418, allocations: 3.938 kB / 437.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.418, allocations: 4 kB / 437.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.418, allocations: 0 / 437.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.418, allocations: 0 / 437.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.4183, allocations: 189.1 kB / 437.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.4184, allocations: 23.94 kB / 437.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.4184, allocations: 0 / 437.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.571e-05/0.4185, allocations: 8 kB / 437.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.818e-05/0.4185, allocations: 4.266 kB / 437.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.4185, allocations: 4 kB / 437.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001033/0.4186, allocations: 106 kB / 437.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4186, allocations: 3.938 kB / 437.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002692/0.4189, allocations: 8 kB / 437.6 MB, free: 1.152 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.0001558/0.4191, allocations: 111.2 kB / 437.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001862/0.4192, allocations: 43.92 kB / 437.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4192, allocations: 0 / 437.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.169e-05/0.4193, allocations: 15.92 kB / 437.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.4197, allocations: 35.94 kB / 437.8 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004752/0.4202, allocations: 193.2 kB / 438 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.4203, allocations: 91.69 kB / 438.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.043e-05/0.4204, allocations: 4 kB / 438.1 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.016e-05/0.4204, allocations: 11.44 kB / 438.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4204, allocations: 0 / 438.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of Templates: time 0.004607/0.425, allocations: 0.7269 MB / 438.8 MB, free: 15.88 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 5.178037726000184]