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.00102/0.00102, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001494/0.002514, allocations: 445.8 kB / 10.44 MB, free: 256 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.000958/0.000958, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001365/0.002323, allocations: 475.6 kB / 11.8 MB, free: 2.367 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.8319/0.8319, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1555/0.9874, allocations: 52.48 MB / 238.5 MB, free: 7.629 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.764e-06/1.764e-06, allocations: 0 / 239.7 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.577e-05/1.753e-05, allocations: 6.312 kB / 239.8 MB, free: 6.348 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002799/0.002817, allocations: 1.685 MB / 241.4 MB, free: 4.672 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007599/0.003577, allocations: 494.5 kB / 241.9 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.73e-05/0.003644, allocations: 0 / 241.9 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.129e-05/0.003685, allocations: 12.67 kB / 241.9 MB, free: 4.172 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.085e-05/0.003766, allocations: 13.14 kB / 241.9 MB, free: 4.16 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.003997, allocations: 59.62 kB / 242 MB, free: 4.102 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.004108, allocations: 43.86 kB / 242 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.673e-05/0.004185, allocations: 17.14 kB / 242.1 MB, free: 4.043 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.004306, allocations: 31.91 kB / 242.1 MB, free: 4.012 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.251e-05/0.004368, allocations: 23.91 kB / 242.1 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.004392, allocations: 4.656 kB / 242.1 MB, free: 3.984 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.298e-05/0.004405, allocations: 1.781 kB / 242.1 MB, free: 3.984 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.759e-05/0.004453, allocations: 15.92 kB / 242.1 MB, free: 3.969 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.143e-05/0.004484, allocations: 19.88 kB / 242.2 MB, free: 3.949 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.004594, allocations: 31.86 kB / 242.2 MB, free: 3.918 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.004604, allocations: 0 / 242.2 MB, free: 3.918 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.004605, allocations: 0.6562 kB / 242.2 MB, free: 3.918 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.004615, allocations: 0 / 242.2 MB, free: 3.918 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.0004188/0.005034, allocations: 304.9 kB / 242.5 MB, free: 3.598 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.005064, allocations: 10 kB / 242.5 MB, free: 3.59 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.85e-05/0.005103, allocations: 12.92 kB / 242.5 MB, free: 3.578 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.005273, allocations: 141.5 kB / 242.6 MB, free: 3.414 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.005284, allocations: 4.375 kB / 242.7 MB, free: 3.41 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.005298, allocations: 5.844 kB / 242.7 MB, free: 3.406 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.00551, allocations: 127.7 kB / 242.8 MB, free: 3.258 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.005518, allocations: 192 / 242.8 MB, free: 3.258 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.005529, allocations: 12.72 kB / 242.8 MB, free: 3.246 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.005535, allocations: 0.5312 kB / 242.8 MB, free: 3.246 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.884e-05/0.005564, allocations: 13.61 kB / 242.8 MB, free: 3.234 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002229/0.005787, allocations: 162 kB / 243 MB, free: 3.055 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.005918, allocations: 67.66 kB / 243 MB, free: 2.961 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.64e-05/0.005954, allocations: 31.83 kB / 243.1 MB, free: 2.922 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.005972, allocations: 4 kB / 243.1 MB, free: 2.918 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.005999, allocations: 42.48 kB / 243.1 MB, free: 2.867 MB / 234.7 MB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.006001, allocations: 1 kB / 243.1 MB, free: 2.867 MB / 234.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001509/0.006152, allocations: 66.55 kB / 243.2 MB, free: 2.797 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.006215, allocations: 106.8 kB / 243.3 MB, free: 2.668 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.497e-05/0.0063, allocations: 133.9 kB / 243.4 MB, free: 2.527 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.006313, allocations: 30.45 kB / 243.4 MB, free: 2.492 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.802e-05/0.006342, allocations: 80.14 kB / 243.5 MB, free: 2.41 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.006362, allocations: 20.61 kB / 243.5 MB, free: 2.391 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.439e-05/0.006396, allocations: 13.72 kB / 243.6 MB, free: 2.371 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.925e-05/0.006475, allocations: 315.5 kB / 243.9 MB, free: 2.055 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.711e-05/0.006493, allocations: 15.86 kB / 243.9 MB, free: 2.039 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.876e-05/0.006511, allocations: 14.38 kB / 243.9 MB, free: 2.02 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.616e-05/0.006548, allocations: 24.23 kB / 243.9 MB, free: 1.992 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.00655, allocations: 0 / 243.9 MB, free: 1.992 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.704e-05/0.006627, allocations: 49.62 kB / 244 MB, free: 1.938 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.006641, allocations: 7.938 kB / 244 MB, free: 1.93 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.006645, allocations: 0 / 244 MB, free: 1.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.006657, allocations: 4 kB / 244 MB, free: 1.926 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.947e-05/0.006716, allocations: 1.469 kB / 244 MB, free: 1.926 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.006722, allocations: 4 kB / 244 MB, free: 1.922 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.015e-05/0.006752, allocations: 3.984 kB / 244 MB, free: 1.918 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-06/0.006759, allocations: 0 / 244 MB, free: 1.918 MB / 234.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 6.532e-05/0.006825, allocations: 113.5 kB / 244.1 MB, free: 1.797 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/0.006888, allocations: 49.62 kB / 244.1 MB, free: 1.738 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.562e-05/0.006924, allocations: 17.38 kB / 244.2 MB, free: 1.711 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.006926, allocations: 0 / 244.2 MB, free: 1.711 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.006929, allocations: 3.984 kB / 244.2 MB, free: 1.707 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.006933, allocations: 4.969 kB / 244.2 MB, free: 1.703 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.00706, allocations: 77.83 kB / 244.2 MB, free: 1.609 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.007062, allocations: 0.9062 kB / 244.2 MB, free: 1.609 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.445e-05/0.007116, allocations: 8 kB / 244.3 MB, free: 1.602 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.861e-05/0.007155, allocations: 20.75 kB / 244.3 MB, free: 1.582 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.007157, allocations: 0 / 244.3 MB, free: 1.582 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.007165, allocations: 8.75 kB / 244.3 MB, free: 1.574 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.007167, allocations: 0 / 244.3 MB, free: 1.574 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.007169, allocations: 5.594 kB / 244.3 MB, free: 1.57 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.812e-05/0.007267, allocations: 153.2 kB / 244.4 MB, free: 1.398 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.007286, allocations: 0 / 244.4 MB, free: 1.398 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.137e-05/0.007357, allocations: 4 kB / 244.4 MB, free: 1.395 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/0.007384, allocations: 12.23 kB / 244.5 MB, free: 1.383 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.007392, allocations: 8 kB / 244.5 MB, free: 1.375 MB / 234.7 MB Notification: Performance of sorting global known variables: time 3.46e-05/0.007427, allocations: 24.84 kB / 244.5 MB, free: 1.348 MB / 234.7 MB Notification: Performance of sort global known variables: time 9e-08/0.007427, allocations: 0 / 244.5 MB, free: 1.348 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002028/0.007629, allocations: 8 kB / 244.5 MB, free: 1.34 MB / 234.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 8.134e-05/0.007711, allocations: 80.36 kB / 244.6 MB, free: 1.254 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 8.468e-05/0.007796, allocations: 32.77 kB / 244.6 MB, free: 1.219 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.007802, allocations: 4 kB / 244.6 MB, free: 1.215 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.287e-05/0.007825, allocations: 9.047 kB / 244.6 MB, free: 1.203 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.008115, allocations: 88.84 kB / 244.7 MB, free: 1.102 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009307/0.009046, allocations: 199.1 kB / 244.9 MB, free: 0.875 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.467e-05/0.00909, allocations: 63.34 kB / 245 MB, free: 0.793 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 3.011e-05/0.00912, allocations: 3.984 kB / 245 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.363e-05/0.009184, allocations: 55.38 kB / 245 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of SimCode: time 8.02e-07/0.009185, allocations: 0 / 245 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of Templates: time 0.002938/0.01212, allocations: 0.7186 MB / 245.7 MB, free: 44 kB / 234.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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.2923539355397224]