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.00101/0.00101, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 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.0009795/0.0009795, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 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 0.9393/0.9393, allocations: 177 MB / 204.8 MB, free: 5.57 MB / 186.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.793e-06/1.793e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.174e-05/2.353e-05, allocations: 6.312 kB / 272.9 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002329/0.002353, allocations: 1.649 MB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007928/0.003146, allocations: 0.5491 MB / 275.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.14e-05/0.003227, allocations: 0 / 275.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.235e-05/0.00328, allocations: 7.938 kB / 275.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.003426, allocations: 23.84 kB / 275.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.003729, allocations: 59.75 kB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.953e-05/0.003829, allocations: 55.78 kB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.794e-05/0.003927, allocations: 15.92 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.00406, allocations: 39.89 kB / 275.3 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.987e-05/0.00411, allocations: 11.92 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.004126, allocations: 4 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.121e-05/0.004168, allocations: 12 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.529e-05/0.004213, allocations: 19.92 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.381e-05/0.004247, allocations: 19.92 kB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001459/0.004393, allocations: 47.75 kB / 275.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.004395, allocations: 4 kB / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.004396, allocations: 0 / 275.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.004401, allocations: 0 / 275.4 MB, free: 14.89 MB / 266.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.00044/0.004841, allocations: 412.2 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.00488, allocations: 11.98 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004428/0.005323, allocations: 20.88 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.005496, allocations: 150.2 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.005506, allocations: 8.375 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.005516, allocations: 4.375 kB / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.005739, allocations: 153.2 kB / 276.2 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.005747, allocations: 4.125 kB / 276.2 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.005756, allocations: 384 / 276.2 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.005766, allocations: 7.938 kB / 276.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.921e-05/0.005795, allocations: 11.98 kB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002888/0.006084, allocations: 283.1 kB / 276.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.006224, allocations: 97.23 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.938e-05/0.006264, allocations: 39.11 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.006279, allocations: 0 / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.006305, allocations: 45.33 kB / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 7.92e-07/0.006306, allocations: 0 / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001613/0.006467, allocations: 69.52 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.006522, allocations: 119 kB / 276.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.231e-05/0.006614, allocations: 196.7 kB / 277 MB, free: 13.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.418e-06/0.006623, allocations: 25.7 kB / 277.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.61e-05/0.00667, allocations: 134.9 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.006685, allocations: 7.953 kB / 277.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/0.006716, allocations: 27.33 kB / 277.2 MB, free: 12.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.006823, allocations: 0.4884 MB / 277.7 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.728e-05/0.00684, allocations: 4 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.913e-05/0.006859, allocations: 19.38 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.825e-05/0.006897, allocations: 35.3 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.0069, allocations: 4 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.587e-05/0.006966, allocations: 57.56 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.006978, allocations: 4 kB / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.006982, allocations: 0 / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.006994, allocations: 4 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.391e-05/0.007038, allocations: 0 / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.007043, allocations: 4 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.831e-05/0.007061, allocations: 0 / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.007067, allocations: 0 / 277.9 MB, free: 12.2 MB / 266.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.922e-05/0.007136, allocations: 164.9 kB / 278 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.018e-05/0.007186, allocations: 61.61 kB / 278.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.114e-05/0.007218, allocations: 20.27 kB / 278.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.007219, allocations: 0 / 278.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.007222, allocations: 3.938 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.007227, allocations: 4 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.007328, allocations: 128.6 kB / 278.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.007331, allocations: 7.984 kB / 278.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.287e-05/0.007354, allocations: 4 kB / 278.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.007356, allocations: 4 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/0.007364, allocations: 3.938 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.007365, allocations: 4 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.007367, allocations: 4 kB / 278.3 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.007479, allocations: 235.2 kB / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.651e-05/0.007506, allocations: 15.89 kB / 278.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.007529, allocations: 11.92 kB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.189e-05/0.00756, allocations: 0 / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.045e-05/0.007591, allocations: 8 kB / 278.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.007594, allocations: 0 / 278.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.268e-05/0.007647, allocations: 147.2 kB / 278.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007647, allocations: 0 / 278.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001476/0.007794, allocations: 4 kB / 278.7 MB, free: 11.3 MB / 266.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 6.276e-05/0.007857, allocations: 107.2 kB / 278.8 MB, free: 11.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.035e-05/0.007938, allocations: 27.61 kB / 278.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.00794, allocations: 4 kB / 278.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.392e-05/0.007953, allocations: 11.69 kB / 278.8 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.008189, allocations: 25.36 kB / 278.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004395/0.008628, allocations: 203.9 kB / 279 MB, free: 10.87 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.326e-05/0.008671, allocations: 63.34 kB / 279.1 MB, free: 10.79 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.085e-05/0.008692, allocations: 0 / 279.1 MB, free: 10.79 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.477e-05/0.008727, allocations: 12.5 kB / 279.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.008728, allocations: 0 / 279.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of Templates: time 0.00241/0.01114, allocations: 0.7052 MB / 279.8 MB, free: 10.08 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.593199146911502]