Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.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.001173/0.001173, allocations: 110.4 kB / 17.06 MB, free: 6.023 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.001622/0.001623, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 55.91 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3156, allocations: 49.42 MB / 400.7 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003887/0.3195, allocations: 1.563 MB / 402.3 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.3206, allocations: 490.6 kB / 402.8 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.864e-05/0.3207, allocations: 4 kB / 402.8 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.235e-05/0.3208, allocations: 7.938 kB / 402.8 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.321, allocations: 11.86 kB / 402.8 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002961/0.3213, allocations: 51.83 kB / 402.8 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.3214, allocations: 51.78 kB / 402.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.3215, allocations: 16.17 kB / 402.9 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.757e-05/0.3216, allocations: 19.92 kB / 402.9 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.238e-05/0.3217, allocations: 23.86 kB / 402.9 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.3217, allocations: 7.984 kB / 402.9 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.188e-05/0.3217, allocations: 0 / 402.9 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.359e-05/0.3218, allocations: 11.94 kB / 403 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.179e-05/0.3218, allocations: 35.8 kB / 403 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.3219, allocations: 47.81 kB / 403 MB, free: 6.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.322, allocations: 4 kB / 403 MB, free: 6.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.141e-05/0.322, allocations: 0 / 403 MB, free: 6.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.322, allocations: 7.875 kB / 403 MB, free: 6.723 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.0005179/0.3225, allocations: 368.5 kB / 403.4 MB, free: 6.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3226, allocations: 12.03 kB / 403.4 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/0.3226, allocations: 8.844 kB / 403.4 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.3229, allocations: 200.1 kB / 403.6 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.3229, allocations: 384 / 403.6 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.3229, allocations: 4.375 kB / 403.6 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003591/0.3233, allocations: 109.2 kB / 403.7 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.3233, allocations: 0 / 403.7 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.3233, allocations: 4 kB / 403.7 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3233, allocations: 0 / 403.7 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.944e-05/0.3234, allocations: 23.92 kB / 403.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000438/0.3239, allocations: 261.8 kB / 404 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.324, allocations: 41.16 kB / 404.1 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.159e-05/0.3241, allocations: 25.77 kB / 404.1 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.3241, allocations: 3.984 kB / 404.1 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.3242, allocations: 30.56 kB / 404.1 MB, free: 5.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 3.376e-06/0.3242, allocations: 0 / 404.1 MB, free: 5.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002747/0.3245, allocations: 73.7 kB / 404.2 MB, free: 5.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.025e-05/0.3246, allocations: 85.11 kB / 404.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.3247, allocations: 149.7 kB / 404.4 MB, free: 5.129 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.3247, allocations: 25.7 kB / 404.4 MB, free: 5.098 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.914e-05/0.3248, allocations: 92.14 kB / 404.5 MB, free: 5.004 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.3248, allocations: 7.906 kB / 404.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.267e-05/0.3249, allocations: 13.72 kB / 404.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002201/0.3251, allocations: 322.8 kB / 404.9 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.258e-05/0.3251, allocations: 11.94 kB / 404.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.251e-05/0.3252, allocations: 21.7 kB / 404.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.3254, allocations: 25.7 kB / 404.9 MB, free: 4.582 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3254, allocations: 0 / 404.9 MB, free: 4.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001191/0.3255, allocations: 65.59 kB / 405 MB, free: 4.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.3255, allocations: 4 kB / 405 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.3255, allocations: 0 / 405 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.3256, allocations: 0 / 405 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.281e-05/0.3256, allocations: 7.984 kB / 405 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.3256, allocations: 7.984 kB / 405 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.527e-05/0.3257, allocations: 0 / 405 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.3257, allocations: 0 / 405 MB, free: 4.492 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 9.633e-05/0.3258, allocations: 129.8 kB / 405.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.983e-05/0.3259, allocations: 41.53 kB / 405.2 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.078e-05/0.3259, allocations: 11.88 kB / 405.2 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3259, allocations: 0 / 405.2 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3259, allocations: 4 kB / 405.2 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3259, allocations: 3.984 kB / 405.2 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.3261, allocations: 173.6 kB / 405.4 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3261, allocations: 0 / 405.4 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/0.3262, allocations: 4 kB / 405.4 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3262, allocations: 4 kB / 405.4 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.3262, allocations: 4.031 kB / 405.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3262, allocations: 0 / 405.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3262, allocations: 0 / 405.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001769/0.3264, allocations: 172.2 kB / 405.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.559e-05/0.3264, allocations: 89.03 kB / 405.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.3265, allocations: 0 / 405.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.056e-05/0.3266, allocations: 11.97 kB / 405.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.3266, allocations: 4 kB / 405.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.517e-06/0.3266, allocations: 0 / 405.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.418e-05/0.3267, allocations: 114 kB / 405.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3267, allocations: 0 / 405.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002192/0.3269, allocations: 7.906 kB / 405.8 MB, free: 3.629 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 0.0001023/0.327, allocations: 99.98 kB / 405.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.3272, allocations: 27.97 kB / 405.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3272, allocations: 11.88 kB / 405.9 MB, free: 3.484 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.498e-05/0.3272, allocations: 4 kB / 405.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.3276, allocations: 23.45 kB / 405.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003299/0.3279, allocations: 155.6 kB / 406.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.3282, allocations: 0.6964 MB / 406.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.088e-05/0.3282, allocations: 256 / 406.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.775e-05/0.3283, allocations: 11.44 kB / 406.8 MB, free: 2.547 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3283, allocations: 0 / 406.8 MB, free: 2.547 MB / 318.1 MB Notification: Performance of Templates: time 0.003225/0.3315, allocations: 0.583 MB / 407.4 MB, free: 1.973 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches