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.0008692/0.0008692, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.00169/0.00169, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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.09/1.09, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 1.553e-06/1.553e-06, allocations: 0 / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.682e-05/3.837e-05, allocations: 2.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003365/0.003403, allocations: 1.65 MB / 274.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009724/0.004376, allocations: 0.5491 MB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.004484, allocations: 4 kB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 7.05e-05/0.004555, allocations: 7.875 kB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001837/0.004738, allocations: 11.86 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003759/0.005114, allocations: 71.73 kB / 275.3 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001129/0.005227, allocations: 51.8 kB / 275.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.005337, allocations: 11.97 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.005477, allocations: 43.91 kB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.752e-05/0.005534, allocations: 15.91 kB / 275.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.005554, allocations: 4 kB / 275.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.404e-05/0.005598, allocations: 8 kB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.434e-05/0.005653, allocations: 19.92 kB / 275.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.373e-05/0.005686, allocations: 11.94 kB / 275.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001607/0.005847, allocations: 55.69 kB / 275.5 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.00585, allocations: 3.984 kB / 275.5 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.005852, allocations: 0 / 275.5 MB, free: 15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.005859, allocations: 0 / 275.5 MB, free: 15 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.000516/0.006375, allocations: 408.2 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.00642, allocations: 16.03 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.006562, allocations: 20.88 kB / 275.9 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.00675, allocations: 143.4 kB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.006761, allocations: 384 / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.006775, allocations: 12.31 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002823/0.007057, allocations: 153.2 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.007069, allocations: 192 / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.00708, allocations: 384 / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.007089, allocations: 3.938 kB / 276.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.066e-05/0.007119, allocations: 15.92 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/0.007593, allocations: 283.2 kB / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.007741, allocations: 93.17 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.288e-05/0.007784, allocations: 39.17 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.007808, allocations: 4 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.007836, allocations: 49.27 kB / 276.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.007837, allocations: 4 kB / 276.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002005/0.008038, allocations: 69.56 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.008103, allocations: 114.8 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.913e-05/0.008202, allocations: 189.9 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.008214, allocations: 29.7 kB / 277.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.615e-05/0.00826, allocations: 130.9 kB / 277.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.923e-05/0.00828, allocations: 11.94 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.00831, allocations: 27.33 kB / 277.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.008426, allocations: 0.4886 MB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.756e-05/0.008444, allocations: 11.94 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.219e-05/0.008466, allocations: 19.38 kB / 277.8 MB, free: 12.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.673e-05/0.008503, allocations: 31.36 kB / 277.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.008505, allocations: 0 / 277.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.701e-05/0.008572, allocations: 57.56 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.008586, allocations: 4 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.008591, allocations: 0 / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.008607, allocations: 0 / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.449e-05/0.008661, allocations: 8 kB / 277.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.008669, allocations: 8.016 kB / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.871e-05/0.008688, allocations: 4 kB / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.008694, allocations: 0 / 277.9 MB, free: 12.3 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 7.185e-05/0.008766, allocations: 164.6 kB / 278.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.871e-05/0.008814, allocations: 61.47 kB / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.407e-05/0.008848, allocations: 12.33 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.008851, allocations: 4 kB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.008859, allocations: 0 / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.008863, allocations: 0 / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.008977, allocations: 132.6 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.008979, allocations: 4 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.882e-05/0.009008, allocations: 11.98 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.009009, allocations: 0 / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.009018, allocations: 7.938 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.00902, allocations: 0 / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.009021, allocations: 0 / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001232/0.009144, allocations: 231.2 kB / 278.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.948e-05/0.009173, allocations: 19.89 kB / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.009196, allocations: 7.922 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.224e-05/0.009228, allocations: 4 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/0.009259, allocations: 4.375 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.009263, allocations: 8 kB / 278.6 MB, free: 11.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.303e-05/0.009316, allocations: 146.2 kB / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009316, allocations: 0 / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001389/0.009455, allocations: 8 kB / 278.7 MB, free: 11.41 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 8.421e-05/0.009539, allocations: 107.2 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.86e-05/0.009628, allocations: 27.67 kB / 278.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.009629, allocations: 0 / 278.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.882e-05/0.009648, allocations: 19.62 kB / 278.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.009907, allocations: 25.61 kB / 278.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005045/0.01041, allocations: 199.7 kB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.639e-05/0.01046, allocations: 67.33 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.415e-05/0.01048, allocations: 4.062 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.636e-05/0.01052, allocations: 12.5 kB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.01052, allocations: 0 / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of Templates: time 0.002894/0.01341, allocations: 0.6812 MB / 279.9 MB, free: 10.22 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 3.2146927071735263]