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.0008886/0.0008885, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.3 MB / 213.8 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009/0.0009, allocations: 90.14 kB / 261.8 MB, free: 1.676 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.07853/0.07853, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.809e-05/1.811e-05, allocations: 0 / 378.9 MB, free: 6.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2388, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0991/0.3379, allocations: 77.8 MB / 0.4952 GB, free: 4.441 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.3382, allocations: 79.94 kB / 0.4953 GB, free: 4.363 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003993/0.3422, allocations: 1.486 MB / 0.4967 GB, free: 2.875 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3422, allocations: 3.938 kB / 0.4968 GB, free: 2.871 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.3422, allocations: 3.938 kB / 0.4968 GB, free: 2.867 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.0003526/0.3426, allocations: 358.3 kB / 0.4971 GB, free: 2.473 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.3427, allocations: 12.03 kB / 0.4971 GB, free: 2.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.607e-05/0.3427, allocations: 11.81 kB / 0.4971 GB, free: 2.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000206/0.3429, allocations: 191.9 kB / 0.4973 GB, free: 2.223 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.3429, allocations: 8 kB / 0.4973 GB, free: 2.215 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.3429, allocations: 0 / 0.4973 GB, free: 2.215 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.85e-05/0.343, allocations: 20 kB / 0.4973 GB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000212/0.3432, allocations: 117.8 kB / 0.4974 GB, free: 2.059 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.3433, allocations: 0 / 0.4974 GB, free: 2.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.3433, allocations: 4 kB / 0.4974 GB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3433, allocations: 0 / 0.4974 GB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004194/0.3437, allocations: 338.5 kB / 0.4978 GB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/0.3439, allocations: 148.8 kB / 0.4979 GB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.219e-05/0.344, allocations: 34.7 kB / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.344, allocations: 0 / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.3441, allocations: 42.58 kB / 0.498 GB, free: 1.395 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.3441, allocations: 4 kB / 0.498 GB, free: 1.391 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002024/0.3443, allocations: 61.59 kB / 0.498 GB, free: 1.324 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.598e-05/0.3444, allocations: 106.8 kB / 0.4981 GB, free: 1.195 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.3445, allocations: 119.7 kB / 0.4983 GB, free: 1.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.3445, allocations: 29.7 kB / 0.4983 GB, free: 1.035 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.336e-05/0.3446, allocations: 92.31 kB / 0.4984 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.3446, allocations: 11.89 kB / 0.4984 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-06/0.3446, allocations: 0 / 0.4984 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.3447, allocations: 326.8 kB / 0.4987 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.846e-05/0.3448, allocations: 4 kB / 0.4987 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.038e-05/0.3448, allocations: 44.28 kB / 0.4987 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.79e-05/0.3448, allocations: 11.94 kB / 0.4988 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3449, allocations: 4 kB / 0.4988 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001034/0.345, allocations: 77.45 kB / 0.4988 GB, free: 448 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.345, allocations: 4 kB / 0.4988 GB, free: 444 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.345, allocations: 4 kB / 0.4988 GB, free: 440 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.345, allocations: 0 / 0.4988 GB, free: 440 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.434e-05/0.3451, allocations: 11.98 kB / 0.4989 GB, free: 428 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.3451, allocations: 4 kB / 0.4989 GB, free: 424 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.863e-05/0.3452, allocations: 12.06 kB / 0.4989 GB, free: 412 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.3452, allocations: 0 / 0.4989 GB, free: 412 kB / 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 8.75e-05/0.3453, allocations: 116.9 kB / 0.499 GB, free: 288 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.036e-05/0.3454, allocations: 49.53 kB / 0.499 GB, free: 232 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.398e-05/0.3454, allocations: 12.34 kB / 0.499 GB, free: 220 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3454, allocations: 4 kB / 0.499 GB, free: 216 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3455, allocations: 4 kB / 0.499 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3455, allocations: 0 / 0.499 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.3457, allocations: 158.2 kB / 0.4992 GB, free: 16 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3457, allocations: 0 / 0.4992 GB, free: 16 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.355e-05/0.3457, allocations: 12.14 kB / 0.4992 GB, free: 4 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3458, allocations: 3.984 kB / 0.4992 GB, free: 0 / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.3458, allocations: 4.062 kB / 0.4992 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3458, allocations: 0 / 0.4992 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.3458, allocations: 3.984 kB / 0.4992 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001893/0.346, allocations: 274.9 kB / 0.4995 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.046e-05/0.3461, allocations: 89 kB / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.3461, allocations: 4 kB / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.582e-05/0.3462, allocations: 3.984 kB / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.3462, allocations: 4 kB / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.3463, allocations: 0 / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.031e-05/0.3463, allocations: 111.9 kB / 0.4997 GB, free: 15.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3463, allocations: 4 kB / 0.4997 GB, free: 15.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002486/0.3466, allocations: 8 kB / 0.4997 GB, free: 15.45 MB / 362.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.0001134/0.3467, allocations: 95.03 kB / 0.4998 GB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.889e-05/0.3468, allocations: 31.92 kB / 0.4998 GB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3468, allocations: 0 / 0.4998 GB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.008e-05/0.3468, allocations: 11.94 kB / 0.4998 GB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.3471, allocations: 23.34 kB / 0.4999 GB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002576/0.3474, allocations: 119.7 kB / 0.5 GB, free: 15.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.3477, allocations: 0.704 MB / 0.5007 GB, free: 14.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.402e-05/0.3477, allocations: 8.172 kB / 0.5007 GB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.408e-05/0.3477, allocations: 11.44 kB / 0.5007 GB, free: 14.39 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3477, allocations: 0 / 0.5007 GB, free: 14.39 MB / 362.7 MB Notification: Performance of Templates: time 0.002359/0.3501, allocations: 0.5328 MB / 0.5012 GB, free: 13.86 MB / 362.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/jenkins/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