Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.000759/0.000759, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001085/0.001844, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0007205/0.0007205, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009354/0.001656, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.003/1.003, allocations: 177.5 MB / 190 MB, free: 4.797 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1026/1.106, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.102e-05/3.271e-05, allocations: 2.312 kB / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.00356/0.003592, allocations: 1.701 MB / 246.9 MB, free: 11.85 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009368/0.004529, allocations: 0.5646 MB / 247.5 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.491e-05/0.004614, allocations: 4 kB / 247.5 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.344e-05/0.004658, allocations: 7.875 kB / 247.5 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.595e-05/0.004744, allocations: 15.86 kB / 247.5 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.005031, allocations: 63.73 kB / 247.6 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001312/0.005162, allocations: 47.8 kB / 247.6 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.116e-05/0.005253, allocations: 19.92 kB / 247.6 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.005423, allocations: 43.89 kB / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.281e-05/0.005485, allocations: 15.92 kB / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.005506, allocations: 4 kB / 247.7 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.403e-05/0.00557, allocations: 12 kB / 247.7 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.855e-05/0.005628, allocations: 15.94 kB / 247.7 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.885e-05/0.005657, allocations: 8 kB / 247.7 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001562/0.005813, allocations: 51.7 kB / 247.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.045e-05/0.005824, allocations: 0 / 247.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.005825, allocations: 0 / 247.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.005838, allocations: 4 kB / 247.8 MB, free: 10.97 MB / 250.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.0004885/0.006326, allocations: 296.2 kB / 248.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.006371, allocations: 8.625 kB / 248.1 MB, free: 10.65 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.006565, allocations: 98.03 kB / 248.2 MB, free: 10.54 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.006767, allocations: 141.6 kB / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.00678, allocations: 4.375 kB / 248.3 MB, free: 10.37 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.545e-05/0.006795, allocations: 8.375 kB / 248.3 MB, free: 10.36 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.007015, allocations: 135 kB / 248.5 MB, free: 10.21 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.007031, allocations: 4.172 kB / 248.5 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.007038, allocations: 384 / 248.5 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.007046, allocations: 7.938 kB / 248.5 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.537e-05/0.007071, allocations: 11.94 kB / 248.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002441/0.007316, allocations: 154.1 kB / 248.6 MB, free: 10.01 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.007458, allocations: 71.75 kB / 248.7 MB, free: 9.914 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.361e-05/0.007492, allocations: 26.62 kB / 248.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.007512, allocations: 0 / 248.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.007545, allocations: 42.55 kB / 248.8 MB, free: 9.828 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 2.955e-06/0.007547, allocations: 3.984 kB / 248.8 MB, free: 9.824 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001612/0.007709, allocations: 65.59 kB / 248.8 MB, free: 9.754 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/0.007777, allocations: 110.8 kB / 249 MB, free: 9.621 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.007884, allocations: 142 kB / 249.1 MB, free: 9.473 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.007896, allocations: 25.7 kB / 249.1 MB, free: 9.441 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.239e-05/0.007939, allocations: 88.12 kB / 249.2 MB, free: 9.352 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.007963, allocations: 7.891 kB / 249.2 MB, free: 9.344 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.654e-05/0.007999, allocations: 21.7 kB / 249.2 MB, free: 9.316 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.909e-05/0.008098, allocations: 318.8 kB / 249.5 MB, free: 8.996 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.301e-05/0.008111, allocations: 4 kB / 249.5 MB, free: 8.992 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.461e-05/0.008136, allocations: 25.64 kB / 249.6 MB, free: 8.961 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.399e-05/0.00818, allocations: 17.88 kB / 249.6 MB, free: 8.938 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.008184, allocations: 4 kB / 249.6 MB, free: 8.934 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.001e-05/0.008264, allocations: 49.61 kB / 249.6 MB, free: 8.879 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.008279, allocations: 4 kB / 249.6 MB, free: 8.875 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.008285, allocations: 3.938 kB / 249.6 MB, free: 8.871 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.008298, allocations: 0 / 249.6 MB, free: 8.871 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.599e-05/0.008354, allocations: 4 kB / 249.7 MB, free: 8.867 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.008359, allocations: 0 / 249.7 MB, free: 8.867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.645e-05/0.008385, allocations: 8 kB / 249.7 MB, free: 8.859 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.008394, allocations: 3.984 kB / 249.7 MB, free: 8.855 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 7.5e-05/0.008469, allocations: 120.7 kB / 249.8 MB, free: 8.727 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.4e-05/0.008523, allocations: 49.56 kB / 249.8 MB, free: 8.672 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.487e-05/0.008558, allocations: 16.28 kB / 249.8 MB, free: 8.652 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.00856, allocations: 0 / 249.8 MB, free: 8.652 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.008563, allocations: 0 / 249.8 MB, free: 8.652 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.008566, allocations: 0 / 249.8 MB, free: 8.652 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.008704, allocations: 81.88 kB / 249.9 MB, free: 8.555 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.008706, allocations: 0 / 249.9 MB, free: 8.555 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.738e-05/0.008743, allocations: 11.98 kB / 249.9 MB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.488e-05/0.008778, allocations: 15.94 kB / 250 MB, free: 8.527 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.008781, allocations: 4 kB / 250 MB, free: 8.523 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-06/0.008786, allocations: 0 / 250 MB, free: 8.523 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.008791, allocations: 7.938 kB / 250 MB, free: 8.516 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.008792, allocations: 0 / 250 MB, free: 8.516 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.911e-05/0.008891, allocations: 149.6 kB / 250.1 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.008911, allocations: 0 / 250.1 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.485e-05/0.008966, allocations: 4 kB / 250.1 MB, free: 8.344 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.935e-05/0.008995, allocations: 7.922 kB / 250.1 MB, free: 8.336 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.009002, allocations: 4 kB / 250.1 MB, free: 8.332 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.933e-05/0.009041, allocations: 32.78 kB / 250.2 MB, free: 8.297 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.009041, allocations: 4.031 kB / 250.2 MB, free: 8.293 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002146/0.009256, allocations: 8 kB / 250.2 MB, free: 8.285 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 9.552e-05/0.009351, allocations: 80.41 kB / 250.2 MB, free: 8.195 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.167e-05/0.009433, allocations: 28.78 kB / 250.3 MB, free: 8.164 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.009439, allocations: 4 kB / 250.3 MB, free: 8.16 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.341e-05/0.009462, allocations: 12.8 kB / 250.3 MB, free: 8.145 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.00976, allocations: 92.69 kB / 250.4 MB, free: 8.043 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000899/0.01066, allocations: 211.3 kB / 250.6 MB, free: 7.805 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.033e-05/0.01071, allocations: 63.34 kB / 250.7 MB, free: 7.723 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.169e-05/0.01074, allocations: 3.984 kB / 250.7 MB, free: 7.719 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.876e-05/0.01081, allocations: 55.38 kB / 250.7 MB, free: 7.664 MB / 250.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01081, allocations: 0 / 250.7 MB, free: 7.664 MB / 250.7 MB Notification: Performance of Templates: time 0.002942/0.01375, allocations: 0.7108 MB / 251.4 MB, free: 6.977 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4601748175919056]