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.0008273/0.0008273, allocations: 97.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009326/0.0009326, allocations: 200.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002606, allocations: 4 kB / 307.7 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1463, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002252/0.1486, allocations: 1.316 MB / 360.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.1498, allocations: 0.5416 MB / 361.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.426e-05/0.1499, allocations: 0 / 361.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.424e-05/0.1499, allocations: 7.922 kB / 361.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.1501, allocations: 7.938 kB / 361.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.1505, allocations: 55.88 kB / 361.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.1506, allocations: 51.78 kB / 361.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.1508, allocations: 19.98 kB / 361.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.1509, allocations: 31.84 kB / 361.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.679e-05/0.151, allocations: 15.92 kB / 361.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.151, allocations: 0 / 361.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.628e-05/0.1511, allocations: 11.94 kB / 361.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.804e-05/0.1511, allocations: 11.98 kB / 361.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.385e-05/0.1512, allocations: 53.45 kB / 361.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.1514, allocations: 55.78 kB / 361.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1514, allocations: 0 / 361.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1514, allocations: 0 / 361.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1514, allocations: 4 kB / 361.4 MB, free: 11.09 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.0005434/0.1519, allocations: 381.6 kB / 361.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.152, allocations: 12.03 kB / 361.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.1522, allocations: 20.83 kB / 361.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.1524, allocations: 200 kB / 362 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1525, allocations: 384 / 362 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.1525, allocations: 8.375 kB / 362 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000345/0.1528, allocations: 134.2 kB / 362.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1529, allocations: 0 / 362.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.1529, allocations: 0 / 362.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1529, allocations: 8 kB / 362.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.802e-05/0.153, allocations: 31.91 kB / 362.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000454/0.1535, allocations: 278.5 kB / 362.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.1537, allocations: 164.8 kB / 362.6 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.562e-05/0.1538, allocations: 46.62 kB / 362.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.1539, allocations: 3.984 kB / 362.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.1539, allocations: 38.56 kB / 362.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.845e-06/0.1539, allocations: 0 / 362.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003089/0.1542, allocations: 101.4 kB / 362.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.443e-05/0.1543, allocations: 119 kB / 362.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.1545, allocations: 144.3 kB / 363.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.1545, allocations: 25.7 kB / 363.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.1545, allocations: 88.12 kB / 363.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.1546, allocations: 15.89 kB / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/0.1546, allocations: 9.719 kB / 363.2 MB, free: 9.023 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1548, allocations: 326.8 kB / 363.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.523e-05/0.1548, allocations: 15.98 kB / 363.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.798e-05/0.1549, allocations: 48.28 kB / 363.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001295/0.155, allocations: 68.22 kB / 363.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1551, allocations: 0 / 363.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001655/0.1552, allocations: 93.45 kB / 363.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1553, allocations: 4 kB / 363.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.1553, allocations: 4 kB / 363.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.1553, allocations: 4.125 kB / 363.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.051e-05/0.1554, allocations: 11.98 kB / 363.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.1554, allocations: 4 kB / 363.8 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.78e-05/0.1554, allocations: 8 kB / 363.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-06/0.1554, allocations: 4 kB / 363.8 MB, free: 8.398 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.0001054/0.1556, allocations: 125.7 kB / 363.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.1556, allocations: 53.61 kB / 364 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.06e-05/0.1557, allocations: 16.23 kB / 364 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1557, allocations: 4 kB / 364 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1557, allocations: 0 / 364 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.433e-06/0.1557, allocations: 4 kB / 364 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.156, allocations: 181.5 kB / 364.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.156, allocations: 0 / 364.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.449e-05/0.1561, allocations: 11.94 kB / 364.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1561, allocations: 0 / 364.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.1561, allocations: 7.984 kB / 364.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1561, allocations: 0 / 364.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1561, allocations: 0 / 364.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000211/0.1563, allocations: 197.1 kB / 364.4 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.592e-05/0.1564, allocations: 93 kB / 364.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.1564, allocations: 0 / 364.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.87e-05/0.1565, allocations: 8.219 kB / 364.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/0.1566, allocations: 8 kB / 364.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.1566, allocations: 3.984 kB / 364.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.211e-05/0.1566, allocations: 111.2 kB / 364.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1567, allocations: 3.938 kB / 364.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002325/0.1569, allocations: 12 kB / 364.6 MB, free: 7.461 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.0001321/0.157, allocations: 103.2 kB / 364.7 MB, free: 7.352 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.1572, allocations: 51.86 kB / 364.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1572, allocations: 0 / 364.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.871e-05/0.1573, allocations: 19.98 kB / 364.8 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003863/0.1577, allocations: 24.89 kB / 364.8 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003967/0.1581, allocations: 219.4 kB / 365 MB, free: 7.004 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003596/0.1584, allocations: 0.6965 MB / 365.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.31e-05/0.1585, allocations: 4 kB / 365.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.754e-05/0.1585, allocations: 11.44 kB / 365.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1585, allocations: 0 / 365.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of Templates: time 0.003207/0.1617, allocations: 0.5909 MB / 366.3 MB, free: 5.691 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/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