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.001396/0.001396, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.578/1.578, allocations: 227.4 MB / 247.5 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 63.92 kB / 307.7 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1363, allocations: 50.52 MB / 358.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003643/0.14, allocations: 1.609 MB / 359.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.1413, allocations: 0.5415 MB / 360.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.1414, allocations: 11.88 kB / 360.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.938e-05/0.1415, allocations: 7.922 kB / 360.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.1417, allocations: 11.88 kB / 360.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.1421, allocations: 67.8 kB / 360.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.1423, allocations: 51.86 kB / 360.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.1424, allocations: 19.97 kB / 360.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.1425, allocations: 27.84 kB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.893e-05/0.1426, allocations: 23.86 kB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.1427, allocations: 4 kB / 360.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.995e-05/0.1427, allocations: 12 kB / 360.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.367e-05/0.1428, allocations: 15.98 kB / 360.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.237e-05/0.1428, allocations: 27.75 kB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.143, allocations: 63.78 kB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.143, allocations: 3.938 kB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.143, allocations: 3.938 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1431, allocations: 0 / 360.7 MB, free: 11.58 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.0006392/0.1437, allocations: 391.3 kB / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1437, allocations: 8.031 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.1439, allocations: 16.84 kB / 361.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002733/0.1442, allocations: 196.1 kB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.1442, allocations: 12.31 kB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.454e-05/0.1443, allocations: 384 / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.1446, allocations: 142.1 kB / 361.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.1446, allocations: 0 / 361.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1447, allocations: 0 / 361.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1447, allocations: 4 kB / 361.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.031e-05/0.1448, allocations: 19.98 kB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004187/0.1452, allocations: 290.6 kB / 361.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002534/0.1455, allocations: 164.8 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.564e-05/0.1456, allocations: 34.62 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.1456, allocations: 4 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.1456, allocations: 42.55 kB / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.243e-06/0.1457, allocations: 0 / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003064/0.146, allocations: 93.45 kB / 362.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/0.1461, allocations: 111 kB / 362.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.1462, allocations: 140.2 kB / 362.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1462, allocations: 29.7 kB / 362.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.453e-05/0.1463, allocations: 96.03 kB / 362.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.1463, allocations: 7.891 kB / 362.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.1464, allocations: 21.72 kB / 362.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1466, allocations: 322.8 kB / 362.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.46e-05/0.1466, allocations: 15.98 kB / 362.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.399e-05/0.1467, allocations: 48.28 kB / 362.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.1468, allocations: 64.2 kB / 362.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1469, allocations: 4 kB / 362.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001791/0.147, allocations: 89.45 kB / 363 MB, free: 8.938 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1471, allocations: 4 kB / 363 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.1471, allocations: 4 kB / 363 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.1471, allocations: 0 / 363 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.687e-05/0.1472, allocations: 15.92 kB / 363 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.1472, allocations: 4 kB / 363 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.571e-05/0.1473, allocations: 0 / 363 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.1473, allocations: 12.12 kB / 363 MB, free: 8.898 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.0001151/0.1474, allocations: 129.8 kB / 363.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.649e-05/0.1475, allocations: 45.61 kB / 363.2 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/0.1475, allocations: 16.23 kB / 363.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1476, allocations: 4 kB / 363.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.1476, allocations: 0 / 363.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1476, allocations: 7.875 kB / 363.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002295/0.1478, allocations: 181.5 kB / 363.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1478, allocations: 0 / 363.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.935e-05/0.1479, allocations: 12 kB / 363.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1479, allocations: 4 kB / 363.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.1479, allocations: 4 kB / 363.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1479, allocations: 7.922 kB / 363.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1479, allocations: 0 / 363.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/0.1482, allocations: 189.3 kB / 363.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.667e-05/0.1483, allocations: 101 kB / 363.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.1483, allocations: 4 kB / 363.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.951e-05/0.1484, allocations: 0 / 363.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.702e-05/0.1484, allocations: 4 kB / 363.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.1484, allocations: 3.984 kB / 363.7 MB, free: 8.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.382e-05/0.1485, allocations: 113.8 kB / 363.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1485, allocations: 0 / 363.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.1488, allocations: 8 kB / 363.9 MB, free: 7.969 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.0001356/0.1489, allocations: 103.2 kB / 364 MB, free: 7.859 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001964/0.1491, allocations: 47.86 kB / 364 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1491, allocations: 0 / 364 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.548e-05/0.1492, allocations: 19.92 kB / 364 MB, free: 7.793 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000441/0.1496, allocations: 27.39 kB / 364 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004504/0.1501, allocations: 222.9 kB / 364.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.1505, allocations: 0.6963 MB / 365 MB, free: 6.789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.1505, allocations: 11.44 kB / 365 MB, free: 6.777 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1505, allocations: 4 kB / 365 MB, free: 6.773 MB / 302.1 MB Notification: Performance of Templates: time 0.00289/0.1534, allocations: 0.8838 MB / 365.9 MB, free: 5.891 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