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.00168/0.00168, allocations: 114.2 kB / 19.04 MB, free: 3.281 MB / 14.72 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.001599/0.001599, allocations: 184.5 kB / 22.21 MB, free: 116 kB / 14.72 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 1.52/1.52, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001599/0.001599, allocations: 51.92 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3294, allocations: 52.14 MB / 420.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.004255/0.3337, allocations: 1.619 MB / 422.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009939/0.3347, allocations: 0.4986 MB / 423 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.828e-05/0.3347, allocations: 4 kB / 423 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.188e-05/0.3348, allocations: 11.86 kB / 423 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.3349, allocations: 7.875 kB / 423 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000295/0.3352, allocations: 51.83 kB / 423.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001271/0.3354, allocations: 59.77 kB / 423.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.937e-05/0.3355, allocations: 8.188 kB / 423.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.887e-05/0.3355, allocations: 19.92 kB / 423.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.315e-05/0.3356, allocations: 23.86 kB / 423.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.3356, allocations: 4 kB / 423.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.3356, allocations: 4 kB / 423.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.46e-05/0.3357, allocations: 23.91 kB / 423.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.775e-05/0.3357, allocations: 27.8 kB / 423.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.3359, allocations: 67.33 kB / 423.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3359, allocations: 0 / 423.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3359, allocations: 0 / 423.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.3359, allocations: 0 / 423.3 MB, free: 12.68 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.0005562/0.3365, allocations: 388.6 kB / 423.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.3365, allocations: 8.031 kB / 423.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.3365, allocations: 16.89 kB / 423.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.3368, allocations: 184.3 kB / 423.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.3368, allocations: 8.375 kB / 423.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/0.3368, allocations: 4.375 kB / 423.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002988/0.3371, allocations: 141.8 kB / 424 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3371, allocations: 3.984 kB / 424 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3371, allocations: 4 kB / 424 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.3371, allocations: 0 / 424 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.713e-05/0.3372, allocations: 19.98 kB / 424.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004403/0.3377, allocations: 294.5 kB / 424.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002495/0.3379, allocations: 160.8 kB / 424.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.549e-05/0.338, allocations: 34.69 kB / 424.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.338, allocations: 8 kB / 424.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.338, allocations: 34.56 kB / 424.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.338, allocations: 0 / 424.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000293/0.3383, allocations: 97.48 kB / 424.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.754e-05/0.3384, allocations: 107.1 kB / 424.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.3385, allocations: 138.2 kB / 424.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.3386, allocations: 33.69 kB / 424.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.017e-05/0.3386, allocations: 88.14 kB / 425 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.3386, allocations: 3.953 kB / 425 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.3387, allocations: 29.66 kB / 425.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.3389, allocations: 318.8 kB / 425.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.285e-05/0.3389, allocations: 15.98 kB / 425.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.059e-05/0.339, allocations: 48.28 kB / 425.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.3392, allocations: 68.09 kB / 425.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3392, allocations: 4 kB / 425.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002313/0.3394, allocations: 81.61 kB / 425.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3395, allocations: 7.594 kB / 425.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3395, allocations: 4 kB / 425.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3395, allocations: 0 / 425.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-05/0.3396, allocations: 15.92 kB / 425.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.3396, allocations: 4 kB / 425.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.85e-05/0.3397, allocations: 12.02 kB / 425.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.3397, allocations: 8 kB / 425.6 MB, free: 10.01 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.000129/0.3398, allocations: 125.8 kB / 425.8 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.3399, allocations: 53.64 kB / 425.8 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.336e-05/0.34, allocations: 12.25 kB / 425.8 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.34, allocations: 7.938 kB / 425.8 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.34, allocations: 0 / 425.8 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.34, allocations: 0 / 425.8 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002822/0.3402, allocations: 177.6 kB / 426 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3402, allocations: 0 / 426 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.485e-05/0.3403, allocations: 12 kB / 426 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.3403, allocations: 3.984 kB / 426 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.3403, allocations: 4.281 kB / 426 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3403, allocations: 0 / 426 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3403, allocations: 0 / 426 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.3406, allocations: 201.1 kB / 426.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.915e-05/0.3407, allocations: 92.98 kB / 426.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.3407, allocations: 4 kB / 426.3 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.3409, allocations: 4 kB / 426.3 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.3409, allocations: 3.984 kB / 426.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.3409, allocations: 4 kB / 426.3 MB, free: 9.203 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.745e-05/0.341, allocations: 105.8 kB / 426.4 MB, free: 9.102 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.341, allocations: 0 / 426.4 MB, free: 9.102 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003938/0.3414, allocations: 12 kB / 426.4 MB, free: 9.09 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 0.0001538/0.3416, allocations: 111.2 kB / 426.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002065/0.3418, allocations: 39.92 kB / 426.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3418, allocations: 0 / 426.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.361e-05/0.3418, allocations: 15.92 kB / 426.6 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000459/0.3423, allocations: 27.95 kB / 426.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005098/0.3428, allocations: 201.3 kB / 426.8 MB, free: 8.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.3432, allocations: 0.7 MB / 427.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.992e-05/0.3433, allocations: 0 / 427.5 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.665e-05/0.3433, allocations: 11.44 kB / 427.5 MB, free: 7.922 MB / 334.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3433, allocations: 0 / 427.5 MB, free: 7.922 MB / 334.1 MB Notification: Performance of Templates: time 0.004108/0.3474, allocations: 0.6588 MB / 428.2 MB, free: 7.273 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.816798768937588]