Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 102.8 kB / 16.02 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 199 kB / 16.95 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.727/1.727, allocations: 205.1 MB / 222.8 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08534/0.08534, allocations: 12.58 MB / 282.7 MB, free: 15.65 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002114/0.002114, allocations: 83.88 kB / 343 MB, free: 3.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3416, allocations: 49.38 MB / 392.4 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.003066/0.3447, allocations: 1.602 MB / 394 MB, free: 48.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009148/0.3457, allocations: 0.5249 MB / 394.5 MB, free: 47.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.3458, allocations: 5.562 kB / 394.5 MB, free: 47.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.31e-05/0.3459, allocations: 1.172 kB / 394.5 MB, free: 47.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.3461, allocations: 7.391 kB / 394.5 MB, free: 47.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.3463, allocations: 51.44 kB / 394.6 MB, free: 47.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001195/0.3465, allocations: 48.03 kB / 394.6 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.3466, allocations: 14.36 kB / 394.6 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.805e-05/0.3467, allocations: 23.33 kB / 394.6 MB, free: 47.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.976e-05/0.3467, allocations: 26.41 kB / 394.7 MB, free: 47.56 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.3468, allocations: 3.562 kB / 394.7 MB, free: 47.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.532e-05/0.3468, allocations: 2.625 kB / 394.7 MB, free: 47.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.758e-05/0.3469, allocations: 15.34 kB / 394.7 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.87e-05/0.3469, allocations: 26.91 kB / 394.7 MB, free: 47.53 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.347, allocations: 50.83 kB / 394.8 MB, free: 47.51 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.347, allocations: 0.5625 kB / 394.8 MB, free: 47.51 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.347, allocations: 0 / 394.8 MB, free: 47.51 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.3471, allocations: 0 / 394.8 MB, free: 47.51 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004343/0.3475, allocations: 380.5 kB / 395.1 MB, free: 47.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.3476, allocations: 10.12 kB / 395.1 MB, free: 47.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.421e-05/0.3476, allocations: 8.781 kB / 395.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.3478, allocations: 202.1 kB / 395.4 MB, free: 46.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.3478, allocations: 2.391 kB / 395.4 MB, free: 46.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.3478, allocations: 7.125 kB / 395.4 MB, free: 46.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/0.3481, allocations: 113 kB / 395.5 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.3481, allocations: 0 / 395.5 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.3481, allocations: 0.9688 kB / 395.5 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3481, allocations: 0.9062 kB / 395.5 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.529e-05/0.3482, allocations: 18.09 kB / 395.5 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002965/0.3485, allocations: 268.6 kB / 395.8 MB, free: 46.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.97e-05/0.3486, allocations: 42.55 kB / 395.8 MB, free: 46.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.072e-05/0.3486, allocations: 25.2 kB / 395.8 MB, free: 46.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.3487, allocations: 1.688 kB / 395.8 MB, free: 46.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.476e-05/0.3487, allocations: 32.28 kB / 395.9 MB, free: 46.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.3487, allocations: 5.125 kB / 395.9 MB, free: 46.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002566/0.3489, allocations: 70.03 kB / 395.9 MB, free: 46.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.349, allocations: 79.03 kB / 396 MB, free: 46.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.3492, allocations: 145.8 kB / 396.1 MB, free: 46.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.3492, allocations: 29.64 kB / 396.2 MB, free: 46.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.174e-05/0.3492, allocations: 88.16 kB / 396.3 MB, free: 46.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.3493, allocations: 9.844 kB / 396.3 MB, free: 46.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.36e-05/0.3493, allocations: 16.83 kB / 396.3 MB, free: 45.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.786e-05/0.3494, allocations: 322.1 kB / 396.6 MB, free: 45.67 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.848e-05/0.3494, allocations: 7.641 kB / 396.6 MB, free: 45.67 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.611e-05/0.3495, allocations: 17.81 kB / 396.6 MB, free: 45.65 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.715e-05/0.3496, allocations: 36.53 kB / 396.7 MB, free: 45.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3496, allocations: 0 / 396.7 MB, free: 45.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001107/0.3497, allocations: 60.12 kB / 396.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.3497, allocations: 4.656 kB / 396.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3497, allocations: 1.438 kB / 396.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3497, allocations: 0.75 kB / 396.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.245e-05/0.3498, allocations: 5.938 kB / 396.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.168e-06/0.3498, allocations: 2.328 kB / 396.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.588e-05/0.3499, allocations: 5.797 kB / 396.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.3499, allocations: 1.031 kB / 396.7 MB, free: 45.58 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.669e-05/0.35, allocations: 127.2 kB / 396.9 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.432e-05/0.35, allocations: 43.73 kB / 396.9 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.577e-05/0.3501, allocations: 9.094 kB / 396.9 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3501, allocations: 2.844 kB / 396.9 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3501, allocations: 0.5625 kB / 396.9 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3501, allocations: 0 / 396.9 MB, free: 45.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.3503, allocations: 175 kB / 397.1 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3503, allocations: 2.391 kB / 397.1 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/0.3503, allocations: 9.453 kB / 397.1 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3503, allocations: 0 / 397.1 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.3503, allocations: 4.328 kB / 397.1 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3503, allocations: 0.5625 kB / 397.1 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3504, allocations: 0 / 397.1 MB, free: 45.2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001244/0.3505, allocations: 168.2 kB / 397.3 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.3505, allocations: 91.97 kB / 397.4 MB, free: 44.94 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.3506, allocations: 8.562 kB / 397.4 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.601e-05/0.3506, allocations: 1.219 kB / 397.4 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.3507, allocations: 4.328 kB / 397.4 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-06/0.3507, allocations: 0.75 kB / 397.4 MB, free: 44.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.382e-05/0.3507, allocations: 111 kB / 397.5 MB, free: 44.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3507, allocations: 3.938 kB / 397.5 MB, free: 44.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002169/0.351, allocations: 10.38 kB / 397.5 MB, free: 44.84 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 6.989e-05/0.351, allocations: 90.25 kB / 397.6 MB, free: 44.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000132/0.3512, allocations: 23 kB / 397.6 MB, free: 44.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3512, allocations: 0 / 397.6 MB, free: 44.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.709e-05/0.3512, allocations: 7.266 kB / 397.6 MB, free: 44.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/0.3516, allocations: 24.38 kB / 397.6 MB, free: 44.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003255/0.352, allocations: 185.5 kB / 397.8 MB, free: 44.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001545/0.3521, allocations: 0.6916 MB / 398.5 MB, free: 43.88 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.256e-05/0.3522, allocations: 6.812 kB / 398.5 MB, free: 43.87 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.97e-05/0.3522, allocations: 14.36 kB / 398.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3522, allocations: 0 / 398.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of Templates: time 0.002814/0.355, allocations: 0.5571 MB / 399.1 MB, free: 43.69 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches