Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002259/0.002258, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.399/2.399, allocations: 205.3 MB / 213.8 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001235/0.001235, allocations: 94.3 kB / 261.8 MB, free: 13.44 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1139/0.1139, allocations: 12.59 MB / 322.3 MB, free: 0.793 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.245e-05/2.239e-05, allocations: 0 / 378.9 MB, free: 75.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.129, allocations: 50.38 MB / 429.3 MB, free: 24.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4489/0.5779, allocations: 77.8 MB / 0.4952 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003173/0.5783, allocations: 78.91 kB / 0.4953 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005662/0.584, allocations: 1.488 MB / 0.4968 GB, free: 11.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.584, allocations: 0 / 0.4968 GB, free: 11.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.5841, allocations: 3.938 kB / 0.4968 GB, free: 11.54 MB / 330.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.0003819/0.5845, allocations: 351.4 kB / 0.4971 GB, free: 11.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.5845, allocations: 11.56 kB / 0.4971 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.179e-05/0.5846, allocations: 12.44 kB / 0.4971 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.5848, allocations: 199 kB / 0.4973 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.5848, allocations: 0 / 0.4973 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.5848, allocations: 11.77 kB / 0.4973 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001096/0.585, allocations: 18.56 kB / 0.4973 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000247/0.5852, allocations: 118.7 kB / 0.4974 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.5852, allocations: 4 kB / 0.4975 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.5853, allocations: 3.906 kB / 0.4975 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.5853, allocations: 0 / 0.4975 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004032/0.5857, allocations: 341.5 kB / 0.4978 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/0.5859, allocations: 150 kB / 0.4979 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.955e-05/0.586, allocations: 29.61 kB / 0.498 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.586, allocations: 0 / 0.498 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.5861, allocations: 48.64 kB / 0.498 GB, free: 10.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.5861, allocations: 0 / 0.498 GB, free: 10.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002686/0.5863, allocations: 58.25 kB / 0.4981 GB, free: 10.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.5864, allocations: 110.6 kB / 0.4982 GB, free: 10.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.5865, allocations: 121.8 kB / 0.4983 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.5866, allocations: 25.7 kB / 0.4983 GB, free: 10.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.36e-05/0.5866, allocations: 87.95 kB / 0.4984 GB, free: 9.926 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.5866, allocations: 9.375 kB / 0.4984 GB, free: 9.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-06/0.5866, allocations: 4 kB / 0.4984 GB, free: 9.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.367e-05/0.5867, allocations: 323.4 kB / 0.4987 GB, free: 9.602 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.949e-05/0.5868, allocations: 5.906 kB / 0.4987 GB, free: 9.602 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.399e-05/0.5868, allocations: 38.3 kB / 0.4987 GB, free: 9.562 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.704e-05/0.5869, allocations: 17.52 kB / 0.4988 GB, free: 9.559 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.5869, allocations: 3.938 kB / 0.4988 GB, free: 9.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001412/0.587, allocations: 74.06 kB / 0.4988 GB, free: 9.512 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.5871, allocations: 7.25 kB / 0.4988 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.5871, allocations: 3.844 kB / 0.4988 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.5871, allocations: 0 / 0.4988 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.5872, allocations: 14.22 kB / 0.4989 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.5873, allocations: 0 / 0.4989 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.541e-05/0.5873, allocations: 11.91 kB / 0.4989 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.5874, allocations: 5.891 kB / 0.4989 GB, free: 9.504 MB / 330.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 6.368e-05/0.5874, allocations: 114.8 kB / 0.499 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.5876, allocations: 51.08 kB / 0.499 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.356e-05/0.5876, allocations: 14.33 kB / 0.4991 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.5876, allocations: 144 / 0.4991 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.5876, allocations: 0 / 0.4991 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.5877, allocations: 3.984 kB / 0.4991 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/0.5879, allocations: 158.6 kB / 0.4992 GB, free: 9.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5879, allocations: 4 kB / 0.4992 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.989e-05/0.588, allocations: 14.08 kB / 0.4992 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.588, allocations: 0 / 0.4992 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.588, allocations: 0 / 0.4992 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.5881, allocations: 3.875 kB / 0.4992 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.5881, allocations: 3.438 kB / 0.4992 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001727/0.5882, allocations: 273 kB / 0.4995 GB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.65e-05/0.5883, allocations: 93.59 kB / 0.4996 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.5884, allocations: 3.844 kB / 0.4996 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.5885, allocations: 0 / 0.4996 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.5886, allocations: 9.438 kB / 0.4996 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.5886, allocations: 0 / 0.4996 GB, free: 8.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.057e-05/0.5887, allocations: 108.6 kB / 0.4997 GB, free: 8.738 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5887, allocations: 0 / 0.4997 GB, free: 8.738 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003824/0.5891, allocations: 7.656 kB / 0.4997 GB, free: 8.738 MB / 330.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 0.0001011/0.5892, allocations: 99.47 kB / 0.4998 GB, free: 8.648 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.5893, allocations: 28.12 kB / 0.4998 GB, free: 8.645 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.5893, allocations: 0 / 0.4998 GB, free: 8.645 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.239e-05/0.5894, allocations: 13.89 kB / 0.4998 GB, free: 8.641 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.5898, allocations: 21.39 kB / 0.4999 GB, free: 8.637 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003239/0.5901, allocations: 120 kB / 0.5 GB, free: 8.539 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001851/0.5903, allocations: 0.7038 MB / 0.5007 GB, free: 7.836 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.803e-05/0.5904, allocations: 4 kB / 0.5007 GB, free: 7.836 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.459e-05/0.5904, allocations: 13.97 kB / 0.5007 GB, free: 7.828 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5905, allocations: 0 / 0.5007 GB, free: 7.828 MB / 330.7 MB Notification: Performance of Templates: time 0.003338/0.5938, allocations: 0.5268 MB / 0.5012 GB, free: 7.758 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches