Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002/0.003187, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001875/0.0032, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9525/0.9525, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08742/1.04, allocations: 52.49 MB / 238.3 MB, free: 4.426 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.091e-05, allocations: 2.875 kB / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001967/0.001988, allocations: 1.688 MB / 241.2 MB, free: 1.469 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005972/0.002586, allocations: 0.4962 MB / 241.7 MB, free: 0.9688 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.276e-05/0.002658, allocations: 3.938 kB / 241.7 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.665e-05/0.002695, allocations: 3.938 kB / 241.7 MB, free: 0.9609 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.956e-05/0.002765, allocations: 11.88 kB / 241.8 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.002967, allocations: 51.75 kB / 241.8 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 9.54e-05/0.003062, allocations: 51.78 kB / 241.9 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.863e-05/0.003141, allocations: 16.17 kB / 241.9 MB, free: 0.832 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.301e-05/0.003234, allocations: 39.84 kB / 241.9 MB, free: 0.793 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.062e-05/0.003284, allocations: 19.97 kB / 241.9 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.17e-05/0.003306, allocations: 4 kB / 241.9 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.759e-06/0.003316, allocations: 4 kB / 241.9 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.731e-05/0.003353, allocations: 11.94 kB / 242 MB, free: 0.7539 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.003383, allocations: 11.94 kB / 242 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 9.663e-05/0.00348, allocations: 35.84 kB / 242 MB, free: 0.707 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.417e-05/0.003494, allocations: 3.984 kB / 242 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.003495, allocations: 4 kB / 242 MB, free: 0.6992 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.003509, allocations: 3.938 kB / 242 MB, free: 0.6953 MB / 234.7 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.0003752/0.003884, allocations: 284.2 kB / 242.3 MB, free: 404 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.003917, allocations: 16.03 kB / 242.3 MB, free: 388 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.926e-05/0.003946, allocations: 12.92 kB / 242.3 MB, free: 376 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.004092, allocations: 145.5 kB / 242.5 MB, free: 204 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.004103, allocations: 4.375 kB / 242.5 MB, free: 200 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.346e-06/0.004111, allocations: 4.375 kB / 242.5 MB, free: 196 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000167/0.004278, allocations: 123.1 kB / 242.6 MB, free: 48 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.004286, allocations: 8.188 kB / 242.6 MB, free: 40 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.004295, allocations: 8.125 kB / 242.6 MB, free: 32 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.0043, allocations: 0 / 242.6 MB, free: 32 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.704e-05/0.004327, allocations: 15.92 kB / 242.6 MB, free: 16 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002064/0.004534, allocations: 154 kB / 242.8 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.004657, allocations: 75.77 kB / 242.8 MB, free: 15.74 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.63e-05/0.004684, allocations: 26.5 kB / 242.9 MB, free: 15.71 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.004705, allocations: 4 kB / 242.9 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.004725, allocations: 42.5 kB / 242.9 MB, free: 15.65 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.004726, allocations: 4 kB / 242.9 MB, free: 15.65 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001222/0.004848, allocations: 61.55 kB / 243 MB, free: 15.58 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.004905, allocations: 110.8 kB / 243.1 MB, free: 15.45 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.937e-05/0.004974, allocations: 137.6 kB / 243.2 MB, free: 15.3 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.004984, allocations: 25.7 kB / 243.2 MB, free: 15.27 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.675e-05/0.005011, allocations: 84.12 kB / 243.3 MB, free: 15.19 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.00503, allocations: 11.94 kB / 243.3 MB, free: 15.18 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/0.005056, allocations: 17.72 kB / 243.4 MB, free: 15.15 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.391e-05/0.00513, allocations: 319.1 kB / 243.7 MB, free: 14.83 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.899e-06/0.00514, allocations: 8 kB / 243.7 MB, free: 14.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.546e-05/0.005156, allocations: 13.72 kB / 243.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.149e-05/0.005187, allocations: 25.69 kB / 243.7 MB, free: 14.77 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.005189, allocations: 0 / 243.7 MB, free: 14.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.289e-05/0.005242, allocations: 45.62 kB / 243.8 MB, free: 14.72 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.005259, allocations: 7.938 kB / 243.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.005264, allocations: 0 / 243.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.817e-06/0.005273, allocations: 4 kB / 243.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.989e-05/0.005333, allocations: 7.984 kB / 243.8 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.005336, allocations: 7.969 kB / 243.8 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.959e-05/0.005356, allocations: 4 kB / 243.8 MB, free: 14.69 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.964e-06/0.005363, allocations: 4 kB / 243.8 MB, free: 14.69 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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.0003188/0.005682, allocations: 112.6 kB / 243.9 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.197e-05/0.005724, allocations: 42.02 kB / 243.9 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.172e-05/0.005755, allocations: 20.27 kB / 244 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.005757, allocations: 0 / 244 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-06/0.00576, allocations: 4.047 kB / 244 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.005765, allocations: 3.984 kB / 244 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.143e-05/0.005856, allocations: 85.83 kB / 244.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.005858, allocations: 0 / 244.1 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.051e-05/0.005888, allocations: 15.94 kB / 244.1 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.797e-05/0.005916, allocations: 23.88 kB / 244.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.005918, allocations: 0 / 244.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.005924, allocations: 7.938 kB / 244.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.005925, allocations: 0 / 244.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.005927, allocations: 3.938 kB / 244.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.754e-05/0.006004, allocations: 145.3 kB / 244.3 MB, free: 14.17 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.006021, allocations: 4 kB / 244.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.557e-05/0.006057, allocations: 3.984 kB / 244.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.674e-05/0.006083, allocations: 11.88 kB / 244.3 MB, free: 14.15 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.006087, allocations: 4.031 kB / 244.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.229e-05/0.006109, allocations: 28.83 kB / 244.3 MB, free: 14.11 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006109, allocations: 0 / 244.3 MB, free: 14.11 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001203/0.006229, allocations: 8 kB / 244.3 MB, free: 14.11 MB / 250.7 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 7.002e-05/0.006299, allocations: 76.42 kB / 244.4 MB, free: 14.02 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.299e-05/0.006362, allocations: 28.78 kB / 244.4 MB, free: 13.99 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.006367, allocations: 4 kB / 244.4 MB, free: 13.99 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.331e-05/0.00638, allocations: 8.859 kB / 244.4 MB, free: 13.98 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001913/0.006572, allocations: 32.8 kB / 244.5 MB, free: 13.95 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006546/0.007226, allocations: 195.1 kB / 244.6 MB, free: 13.72 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.238e-05/0.007258, allocations: 63.34 kB / 244.7 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.446e-05/0.007283, allocations: 3.984 kB / 244.7 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.639e-05/0.007329, allocations: 59.38 kB / 244.8 MB, free: 13.58 MB / 250.7 MB Notification: Performance of SimCode: time 8.52e-07/0.00733, allocations: 0 / 244.8 MB, free: 13.58 MB / 250.7 MB Notification: Performance of Templates: time 0.002144/0.009474, allocations: 0.7182 MB / 245.5 MB, free: 12.88 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.502732045017183]