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.001872/0.001872, allocations: 114.7 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00255/0.00255, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 55.97 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1339, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003246/0.1372, allocations: 1.602 MB / 360.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1383, allocations: 0.5571 MB / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.635e-05/0.1384, allocations: 0 / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.813e-05/0.1385, allocations: 7.875 kB / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.1386, allocations: 11.92 kB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003628/0.139, allocations: 63.75 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.1391, allocations: 47.84 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.1393, allocations: 23.97 kB / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.1394, allocations: 39.78 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.135e-05/0.1395, allocations: 15.92 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.1395, allocations: 4 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.648e-05/0.1395, allocations: 15.94 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.741e-05/0.1396, allocations: 11.98 kB / 361.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.805e-05/0.1396, allocations: 35.73 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.1398, allocations: 67.72 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1398, allocations: 4 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1398, allocations: 0 / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1398, allocations: 0 / 361.4 MB, free: 10.84 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.0005183/0.1404, allocations: 391 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001281/0.1405, allocations: 8.031 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.1407, allocations: 20.83 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.141, allocations: 198.5 kB / 362 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.141, allocations: 4.375 kB / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.141, allocations: 8.312 kB / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.1413, allocations: 134.2 kB / 362.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1413, allocations: 0 / 362.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.1414, allocations: 7.938 kB / 362.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.1414, allocations: 7.938 kB / 362.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.483e-05/0.1415, allocations: 19.98 kB / 362.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000545/0.142, allocations: 290.6 kB / 362.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.1422, allocations: 164.9 kB / 362.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.373e-05/0.1423, allocations: 30.64 kB / 362.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.1424, allocations: 3.984 kB / 362.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.1424, allocations: 34.56 kB / 362.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.1424, allocations: 0 / 362.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002918/0.1427, allocations: 101.4 kB / 362.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.1428, allocations: 110.8 kB / 362.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.1429, allocations: 133.8 kB / 363 MB, free: 8.938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.1429, allocations: 25.7 kB / 363.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.716e-05/0.143, allocations: 104 kB / 363.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.143, allocations: 3.906 kB / 363.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.1431, allocations: 21.97 kB / 363.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1432, allocations: 326.8 kB / 363.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.322e-05/0.1433, allocations: 15.98 kB / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.118e-05/0.1433, allocations: 44.28 kB / 363.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.1435, allocations: 68.22 kB / 363.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1435, allocations: 0 / 363.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001643/0.1437, allocations: 89.45 kB / 363.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1437, allocations: 4 kB / 363.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1437, allocations: 4 kB / 363.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1437, allocations: 4.125 kB / 363.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.509e-05/0.1438, allocations: 11.98 kB / 363.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1438, allocations: 7.938 kB / 363.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.608e-05/0.1439, allocations: 240 / 363.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1439, allocations: 4 kB / 363.8 MB, free: 8.156 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.0001088/0.144, allocations: 129.8 kB / 363.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.954e-05/0.1441, allocations: 49.61 kB / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.935e-05/0.1441, allocations: 16.23 kB / 363.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1441, allocations: 0 / 363.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1442, allocations: 8 kB / 364 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.1442, allocations: 0 / 364 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/0.1444, allocations: 185.5 kB / 364.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1444, allocations: 0 / 364.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.897e-05/0.1444, allocations: 15.88 kB / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1445, allocations: 0 / 364.1 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.1445, allocations: 7.984 kB / 364.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1445, allocations: 0 / 364.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1445, allocations: 0 / 364.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.1447, allocations: 193.1 kB / 364.3 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.798e-05/0.1448, allocations: 93 kB / 364.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.1448, allocations: 4 kB / 364.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.064e-05/0.1449, allocations: 3.938 kB / 364.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.1449, allocations: 7.984 kB / 364.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.1449, allocations: 0 / 364.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.392e-05/0.145, allocations: 114.4 kB / 364.6 MB, free: 7.234 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.145, allocations: 0 / 364.6 MB, free: 7.234 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002429/0.1453, allocations: 12 kB / 364.6 MB, free: 7.223 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.000105/0.1454, allocations: 99.23 kB / 364.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001801/0.1456, allocations: 51.92 kB / 364.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1456, allocations: 0 / 364.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.041e-05/0.1456, allocations: 20.23 kB / 364.7 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.146, allocations: 27.73 kB / 364.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003794/0.1464, allocations: 184.9 kB / 364.9 MB, free: 6.809 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.1467, allocations: 0.7002 MB / 365.6 MB, free: 6.082 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.766e-05/0.1467, allocations: 11.84 kB / 365.7 MB, free: 6.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.136e-05/0.1468, allocations: 11.44 kB / 365.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of SimCode: time 1.693e-06/0.1468, allocations: 0 / 365.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of Templates: time 0.002912/0.1497, allocations: 0.6408 MB / 366.3 MB, free: 5.434 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 -s gbode -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