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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001017/0.001017, allocations: 95.25 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 207.7 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.7 MB / 247.5 MB, free: 11.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002624/0.0002625, allocations: 8.188 kB / 308.4 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1207, allocations: 51.53 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.0024/0.1231, allocations: 1.317 MB / 361.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1244, allocations: 0.53 MB / 361.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.1245, allocations: 0 / 361.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.135e-05/0.1246, allocations: 3.938 kB / 361.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001663/0.1248, allocations: 19.92 kB / 361.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000462/0.1252, allocations: 59.81 kB / 361.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.1254, allocations: 43.86 kB / 361.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.1255, allocations: 23.95 kB / 361.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.1257, allocations: 35.84 kB / 361.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.287e-05/0.1258, allocations: 15.92 kB / 362 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.1258, allocations: 7.938 kB / 362 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.86e-05/0.1258, allocations: 4 kB / 362 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.765e-05/0.1259, allocations: 12 kB / 362 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.464e-05/0.126, allocations: 53.44 kB / 362 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001416/0.1261, allocations: 43.91 kB / 362.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1262, allocations: 4 kB / 362.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.1262, allocations: 0 / 362.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1262, allocations: 0 / 362.1 MB, free: 11.04 MB / 302.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.0007109/0.1269, allocations: 371.5 kB / 362.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/0.127, allocations: 11.97 kB / 362.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/0.1272, allocations: 24.83 kB / 362.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.1275, allocations: 206.4 kB / 362.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.1275, allocations: 4.375 kB / 362.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.1275, allocations: 4.312 kB / 362.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000398/0.128, allocations: 142.2 kB / 362.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.128, allocations: 0 / 362.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.128, allocations: 0 / 362.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.128, allocations: 0 / 362.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.1281, allocations: 31.92 kB / 362.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004714/0.1286, allocations: 282.5 kB / 363.1 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.1289, allocations: 160.9 kB / 363.3 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.802e-05/0.129, allocations: 46.56 kB / 363.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.129, allocations: 4 kB / 363.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.129, allocations: 30.56 kB / 363.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.1291, allocations: 0 / 363.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003327/0.1294, allocations: 105.5 kB / 363.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.1295, allocations: 110.8 kB / 363.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.1297, allocations: 141.8 kB / 363.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.1297, allocations: 25.7 kB / 363.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.923e-05/0.1298, allocations: 88.14 kB / 363.8 MB, free: 9.016 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.191e-05/0.1298, allocations: 12.14 kB / 363.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.074e-05/0.1299, allocations: 21.7 kB / 363.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.13, allocations: 318.8 kB / 364.2 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.769e-05/0.1301, allocations: 19.98 kB / 364.2 MB, free: 8.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.331e-05/0.1302, allocations: 44.28 kB / 364.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001403/0.1303, allocations: 64.22 kB / 364.3 MB, free: 8.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1303, allocations: 4 kB / 364.3 MB, free: 8.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001805/0.1305, allocations: 97.64 kB / 364.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.1305, allocations: 4 kB / 364.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1305, allocations: 0 / 364.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.1306, allocations: 4.047 kB / 364.4 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.135e-05/0.1307, allocations: 15.97 kB / 364.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.1307, allocations: 3.938 kB / 364.4 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.881e-05/0.1307, allocations: 4 kB / 364.4 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.1307, allocations: 4.125 kB / 364.4 MB, free: 8.359 MB / 302.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.0001193/0.1309, allocations: 133.7 kB / 364.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.435e-05/0.131, allocations: 53.59 kB / 364.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.131, allocations: 16.19 kB / 364.6 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.131, allocations: 4 kB / 364.6 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.131, allocations: 0 / 364.6 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.131, allocations: 0 / 364.6 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.1313, allocations: 181.5 kB / 364.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1313, allocations: 0 / 364.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.914e-05/0.1313, allocations: 15.92 kB / 364.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1313, allocations: 8 kB / 364.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.1314, allocations: 0 / 364.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1314, allocations: 0 / 364.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.1314, allocations: 4 kB / 364.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.1316, allocations: 197.1 kB / 365 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.303e-05/0.1317, allocations: 93 kB / 365.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.396e-05/0.1317, allocations: 4 kB / 365.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.393e-05/0.1318, allocations: 7.984 kB / 365.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.264e-05/0.1318, allocations: 0 / 365.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.1319, allocations: 4 kB / 365.1 MB, free: 7.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.349e-05/0.1319, allocations: 113.4 kB / 365.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.132, allocations: 0 / 365.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002419/0.1322, allocations: 12 kB / 365.3 MB, free: 7.418 MB / 302.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.0001365/0.1323, allocations: 99.25 kB / 365.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001692/0.1325, allocations: 55.84 kB / 365.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1325, allocations: 0 / 365.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.772e-05/0.1326, allocations: 12.31 kB / 365.4 MB, free: 7.246 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.133, allocations: 35.2 kB / 365.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004566/0.1335, allocations: 248.6 kB / 365.7 MB, free: 6.926 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.1338, allocations: 0.7005 MB / 366.4 MB, free: 6.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.1338, allocations: 7.438 kB / 366.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1338, allocations: 4 kB / 366.4 MB, free: 6.188 MB / 302.1 MB Notification: Performance of Templates: time 0.002693/0.1365, allocations: 0.8801 MB / 367.3 MB, free: 5.316 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches