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.001273/0.001273, allocations: 112.2 kB / 21.19 MB, free: 0.7539 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.001339/0.001339, allocations: 213.7 kB / 24.49 MB, free: 4.137 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.404/1.404, allocations: 230.6 MB / 258.3 MB, free: 8 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.001606/0.001606, allocations: 43.92 kB / 379 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2311, allocations: 53.36 MB / 432.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003139/0.2343, allocations: 1.621 MB / 434 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.2354, allocations: 0.5687 MB / 434.6 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.627e-05/0.2355, allocations: 7.938 kB / 434.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.419e-05/0.2355, allocations: 3.938 kB / 434.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.2357, allocations: 11.86 kB / 434.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003429/0.236, allocations: 67.81 kB / 434.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.2361, allocations: 51.84 kB / 434.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.751e-05/0.2362, allocations: 15.92 kB / 434.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.2363, allocations: 27.86 kB / 434.8 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.717e-05/0.2364, allocations: 27.84 kB / 434.8 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.2364, allocations: 4 kB / 434.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.007e-05/0.2365, allocations: 8 kB / 434.8 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.29e-05/0.2365, allocations: 15.92 kB / 434.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.286e-05/0.2366, allocations: 27.75 kB / 434.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.2367, allocations: 73.91 kB / 434.9 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2367, allocations: 4 kB / 434.9 MB, free: 4.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2367, allocations: 0 / 434.9 MB, free: 4.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.2367, allocations: 0 / 434.9 MB, free: 4.383 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.0005011/0.2372, allocations: 306 kB / 435.2 MB, free: 4.055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.2373, allocations: 12.03 kB / 435.2 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.2374, allocations: 16.88 kB / 435.3 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.2377, allocations: 146.3 kB / 435.4 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-06/0.2377, allocations: 4.375 kB / 435.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.2377, allocations: 8.312 kB / 435.4 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.238, allocations: 138.1 kB / 435.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.238, allocations: 0 / 435.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-06/0.238, allocations: 4 kB / 435.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.238, allocations: 0 / 435.5 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.834e-05/0.2381, allocations: 31.92 kB / 435.6 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003588/0.2385, allocations: 249.7 kB / 435.8 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000208/0.2387, allocations: 83.78 kB / 435.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.864e-05/0.2388, allocations: 38.62 kB / 435.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.2388, allocations: 0 / 435.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.2388, allocations: 42.5 kB / 436 MB, free: 3.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.2388, allocations: 0 / 436 MB, free: 3.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002872/0.2391, allocations: 93.55 kB / 436.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.05e-05/0.2392, allocations: 107 kB / 436.2 MB, free: 2.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.2393, allocations: 144.4 kB / 436.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.2393, allocations: 25.7 kB / 436.3 MB, free: 2.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.604e-05/0.2394, allocations: 92.39 kB / 436.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.2394, allocations: 7.953 kB / 436.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.364e-05/0.2395, allocations: 29.66 kB / 436.5 MB, free: 2.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.2396, allocations: 318.8 kB / 436.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.213e-05/0.2397, allocations: 15.97 kB / 436.8 MB, free: 2.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.573e-05/0.2397, allocations: 56.2 kB / 436.9 MB, free: 2.207 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001371/0.2399, allocations: 68.2 kB / 436.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2399, allocations: 0 / 436.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001677/0.24, allocations: 81.64 kB / 437 MB, free: 2.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2401, allocations: 11.92 kB / 437 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2401, allocations: 7.938 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.2401, allocations: 0 / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.011e-05/0.2402, allocations: 8 kB / 437 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2402, allocations: 0 / 437 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.376e-05/0.2402, allocations: 19.88 kB / 437 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.2402, allocations: 7.938 kB / 437.1 MB, free: 1.984 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.000106/0.2403, allocations: 121.8 kB / 437.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.783e-05/0.2404, allocations: 57.67 kB / 437.2 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.544e-05/0.2405, allocations: 12.34 kB / 437.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2405, allocations: 0 / 437.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2405, allocations: 4 kB / 437.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2405, allocations: 3.984 kB / 437.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.2407, allocations: 148.7 kB / 437.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2407, allocations: 0 / 437.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.692e-05/0.2407, allocations: 11.98 kB / 437.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.2407, allocations: 4 kB / 437.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-06/0.2407, allocations: 0 / 437.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2407, allocations: 4 kB / 437.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2407, allocations: 0 / 437.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.241, allocations: 193.1 kB / 437.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.011e-05/0.241, allocations: 11.94 kB / 437.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.241, allocations: 12.06 kB / 437.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.333e-05/0.2411, allocations: 4 kB / 437.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.06e-05/0.2411, allocations: 7.984 kB / 437.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-06/0.2411, allocations: 0 / 437.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.957e-05/0.2412, allocations: 113.7 kB / 437.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2412, allocations: 0 / 437.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002375/0.2415, allocations: 12 kB / 437.8 MB, free: 1.191 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 9.65e-05/0.2416, allocations: 95.25 kB / 437.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001719/0.2417, allocations: 59.84 kB / 437.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2417, allocations: 0 / 437.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.882e-05/0.2418, allocations: 8 kB / 437.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004081/0.2422, allocations: 39.09 kB / 438 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000444/0.2426, allocations: 226.6 kB / 438.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.243, allocations: 0.7044 MB / 438.9 MB, free: 0 / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.08e-05/0.243, allocations: 11.44 kB / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.243, allocations: 0 / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of Templates: time 0.002604/0.2456, allocations: 0.8823 MB / 439.8 MB, free: 15.11 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 -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: 6.518016421003267]