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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.0009969/0.0009969, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 225.6 MB / 234.8 MB, free: 3.227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008274/0.0008275, allocations: 97.27 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.369e-05/2.397e-05, allocations: 4 kB / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1139, allocations: 51.48 MB / 395.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3291/0.443, allocations: 77.38 MB / 472.6 MB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.4433, allocations: 75.81 kB / 472.6 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004245/0.4475, allocations: 1.662 MB / 474.3 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4476, allocations: 0 / 474.3 MB, free: 13.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.4476, allocations: 4 kB / 474.3 MB, free: 13.09 MB / 346.7 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.0002847/0.4479, allocations: 366 kB / 474.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.4479, allocations: 8.031 kB / 474.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.448, allocations: 19.53 kB / 474.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.4482, allocations: 192.6 kB / 474.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-06/0.4482, allocations: 0 / 474.9 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.4482, allocations: 7.609 kB / 474.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001129/0.4484, allocations: 25.12 kB / 474.9 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.4486, allocations: 114.2 kB / 475 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.4486, allocations: 0.6562 kB / 475 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.4486, allocations: 3.984 kB / 475 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.4486, allocations: 4 kB / 475 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003164/0.4489, allocations: 337.9 kB / 475.4 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.4491, allocations: 155.3 kB / 475.5 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.974e-05/0.4491, allocations: 29.33 kB / 475.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.4492, allocations: 1.547 kB / 475.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.343e-05/0.4492, allocations: 41 kB / 475.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.4492, allocations: 0 / 475.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001733/0.4494, allocations: 65.44 kB / 475.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.4494, allocations: 112 kB / 475.7 MB, free: 11.53 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.093e-05/0.4495, allocations: 124.4 kB / 475.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.807e-06/0.4495, allocations: 25.7 kB / 475.9 MB, free: 11.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.257e-05/0.4495, allocations: 85.88 kB / 476 MB, free: 11.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.571e-05/0.4496, allocations: 12.75 kB / 476 MB, free: 11.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-06/0.4496, allocations: 0 / 476 MB, free: 11.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.499e-05/0.4496, allocations: 324.7 kB / 476.3 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.014e-05/0.4497, allocations: 17.05 kB / 476.3 MB, free: 10.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.663e-05/0.4497, allocations: 33.28 kB / 476.4 MB, free: 10.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.892e-05/0.4497, allocations: 12.08 kB / 476.4 MB, free: 10.91 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4497, allocations: 0 / 476.4 MB, free: 10.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.227e-05/0.4498, allocations: 73.66 kB / 476.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.4498, allocations: 8 kB / 476.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.4499, allocations: 0 / 476.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.4499, allocations: 0 / 476.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.032e-05/0.4499, allocations: 17.25 kB / 476.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.45, allocations: 3.672 kB / 476.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.703e-05/0.45, allocations: 7.906 kB / 476.5 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.45, allocations: 5.344 kB / 476.5 MB, free: 10.81 MB / 346.7 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.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.733e-05/0.4501, allocations: 116.8 kB / 476.6 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.882e-05/0.4502, allocations: 54.77 kB / 476.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.133e-05/0.4502, allocations: 9.359 kB / 476.7 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.4502, allocations: 4 kB / 476.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4502, allocations: 0 / 476.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.4502, allocations: 1.453 kB / 476.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.4504, allocations: 150.8 kB / 476.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4504, allocations: 0 / 476.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.502e-05/0.4505, allocations: 13.69 kB / 476.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4505, allocations: 8 kB / 476.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.4505, allocations: 1.641 kB / 476.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.4505, allocations: 0 / 476.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4505, allocations: 2.938 kB / 476.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.4506, allocations: 279.2 kB / 477.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.4507, allocations: 92.66 kB / 477.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.4507, allocations: 4 kB / 477.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.4508, allocations: 5.312 kB / 477.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.246e-05/0.4509, allocations: 1.5 kB / 477.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.4509, allocations: 4 kB / 477.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.221e-05/0.4509, allocations: 101.6 kB / 477.3 MB, free: 9.953 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4509, allocations: 0 / 477.3 MB, free: 9.953 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002595/0.4512, allocations: 9.688 kB / 477.3 MB, free: 9.945 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.34e-05/0.4513, allocations: 112.5 kB / 477.4 MB, free: 9.828 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.224e-05/0.4514, allocations: 28.05 kB / 477.5 MB, free: 9.809 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4514, allocations: 3.938 kB / 477.5 MB, free: 9.805 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.793e-05/0.4514, allocations: 9.25 kB / 477.5 MB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.4517, allocations: 21.95 kB / 477.5 MB, free: 9.785 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002198/0.4519, allocations: 110.3 kB / 477.6 MB, free: 9.668 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.452, allocations: 0.6989 MB / 478.3 MB, free: 8.953 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.146e-05/0.4521, allocations: 5.734 kB / 478.3 MB, free: 8.949 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.192e-05/0.4521, allocations: 16.56 kB / 478.3 MB, free: 8.938 MB / 346.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4521, allocations: 0 / 478.3 MB, free: 8.938 MB / 346.7 MB Notification: Performance of Templates: time 0.002263/0.4544, allocations: 0.5336 MB / 478.9 MB, free: 8.645 MB / 346.7 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","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches