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.002004/0.002004, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002719/0.00272, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 227.4 MB / 247.1 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 59.94 kB / 307.1 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1378, allocations: 50.53 MB / 357.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003728/0.1416, allocations: 1.66 MB / 359.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.1427, allocations: 0.5416 MB / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.099e-05/0.1429, allocations: 4 kB / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.477e-05/0.1429, allocations: 3.938 kB / 359.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001327/0.1431, allocations: 15.86 kB / 359.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.1434, allocations: 51.89 kB / 360 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.1435, allocations: 55.84 kB / 360 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.1437, allocations: 23.95 kB / 360 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.1438, allocations: 27.86 kB / 360.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.601e-05/0.1439, allocations: 31.78 kB / 360.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.503e-05/0.1439, allocations: 4 kB / 360.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.195e-05/0.1439, allocations: 8 kB / 360.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.785e-05/0.144, allocations: 15.98 kB / 360.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.979e-05/0.144, allocations: 31.75 kB / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.1442, allocations: 47.92 kB / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1442, allocations: 0 / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1442, allocations: 0 / 360.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1442, allocations: 0 / 360.2 MB, free: 11.86 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.0005457/0.1447, allocations: 387.3 kB / 360.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.1448, allocations: 8.031 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.1449, allocations: 20.83 kB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.1452, allocations: 206.7 kB / 360.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-06/0.1452, allocations: 4.312 kB / 360.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.1452, allocations: 8.312 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003231/0.1455, allocations: 138.1 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.557e-06/0.1456, allocations: 4 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.1456, allocations: 0 / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1456, allocations: 0 / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.1457, allocations: 31.91 kB / 361 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004021/0.1461, allocations: 278.6 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.1464, allocations: 156.8 kB / 361.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.416e-05/0.1465, allocations: 42.69 kB / 361.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.1465, allocations: 0 / 361.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.1465, allocations: 38.5 kB / 361.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.1465, allocations: 0 / 361.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003027/0.1469, allocations: 97.5 kB / 361.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.932e-05/0.147, allocations: 102.8 kB / 361.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.1471, allocations: 146.1 kB / 361.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.1471, allocations: 29.7 kB / 361.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.239e-05/0.1472, allocations: 92.05 kB / 361.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.1472, allocations: 7.906 kB / 362 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.317e-05/0.1473, allocations: 21.7 kB / 362 MB, free: 9.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1475, allocations: 322.8 kB / 362.3 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.268e-05/0.1475, allocations: 11.98 kB / 362.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.655e-05/0.1476, allocations: 52.22 kB / 362.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.1477, allocations: 60.41 kB / 362.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1477, allocations: 0 / 362.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000183/0.1479, allocations: 93.5 kB / 362.5 MB, free: 9.227 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.148, allocations: 4 kB / 362.5 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.148, allocations: 0 / 362.5 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.148, allocations: 7.938 kB / 362.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.851e-05/0.1481, allocations: 15.92 kB / 362.5 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1481, allocations: 0 / 362.5 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.005e-05/0.1481, allocations: 8 kB / 362.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.1482, allocations: 4 kB / 362.5 MB, free: 9.188 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.0001202/0.1483, allocations: 125.9 kB / 362.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.1484, allocations: 57.53 kB / 362.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.955e-05/0.1484, allocations: 12.25 kB / 362.7 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.1485, allocations: 0 / 362.7 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.1485, allocations: 0 / 362.7 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1485, allocations: 4 kB / 362.7 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.1487, allocations: 189.5 kB / 362.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1487, allocations: 0 / 362.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.004e-05/0.1488, allocations: 11.98 kB / 362.9 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1488, allocations: 4 kB / 362.9 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.1488, allocations: 4 kB / 362.9 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.1488, allocations: 4 kB / 362.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1488, allocations: 0 / 362.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002298/0.1491, allocations: 185 kB / 363.1 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.152e-05/0.1492, allocations: 97 kB / 363.2 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.1492, allocations: 4 kB / 363.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.404e-05/0.1493, allocations: 8 kB / 363.2 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.743e-05/0.1493, allocations: 3.984 kB / 363.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.1493, allocations: 4 kB / 363.2 MB, free: 8.375 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.109e-05/0.1494, allocations: 109.5 kB / 363.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1494, allocations: 0 / 363.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.1497, allocations: 8 kB / 363.4 MB, free: 8.262 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.0001258/0.1498, allocations: 103.2 kB / 363.5 MB, free: 8.152 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001727/0.15, allocations: 55.78 kB / 363.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.15, allocations: 0 / 363.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.352e-05/0.15, allocations: 8 kB / 363.5 MB, free: 8.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004215/0.1505, allocations: 30.45 kB / 363.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004392/0.1509, allocations: 250.9 kB / 363.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.1513, allocations: 0.6924 MB / 364.5 MB, free: 7.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.1513, allocations: 7.438 kB / 364.5 MB, free: 7.051 MB / 302.1 MB Notification: Performance of SimCode: time 2.364e-06/0.1513, allocations: 0 / 364.5 MB, free: 7.051 MB / 302.1 MB Notification: Performance of Templates: time 0.00271/0.1541, allocations: 0.9075 MB / 365.4 MB, free: 6.152 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.1.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