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.001241/0.001241, allocations: 109.5 kB / 17.06 MB, free: 6.004 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.001384/0.001385, allocations: 191 kB / 18 MB, free: 5.09 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.381/1.381, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009685/0.0009685, allocations: 47.92 kB / 351.3 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3214, allocations: 49.44 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002697/0.3241, allocations: 1.565 MB / 402.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008902/0.325, allocations: 486.7 kB / 402.8 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.835e-05/0.3251, allocations: 4 kB / 402.8 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.249e-05/0.3252, allocations: 7.875 kB / 402.8 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.3253, allocations: 7.938 kB / 402.8 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.3256, allocations: 51.83 kB / 402.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.3257, allocations: 47.78 kB / 402.9 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.3259, allocations: 16.17 kB / 402.9 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.922e-05/0.3259, allocations: 27.86 kB / 402.9 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.344e-05/0.326, allocations: 23.86 kB / 402.9 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.754e-05/0.326, allocations: 0 / 402.9 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.34e-05/0.3261, allocations: 4 kB / 402.9 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.878e-05/0.3261, allocations: 19.92 kB / 403 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.994e-05/0.3262, allocations: 23.81 kB / 403 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.3263, allocations: 59.53 kB / 403 MB, free: 6.578 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3263, allocations: 0 / 403 MB, free: 6.578 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3263, allocations: 0 / 403 MB, free: 6.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.3263, allocations: 0 / 403 MB, free: 6.578 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.0005063/0.3268, allocations: 375.1 kB / 403.4 MB, free: 6.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.3269, allocations: 12.02 kB / 403.4 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.491e-05/0.3269, allocations: 8.891 kB / 403.4 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.3272, allocations: 212.1 kB / 403.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-06/0.3272, allocations: 8.312 kB / 403.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.3272, allocations: 384 / 403.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/0.3275, allocations: 113.1 kB / 403.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.3275, allocations: 7.984 kB / 403.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.3275, allocations: 0 / 403.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3275, allocations: 0 / 403.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.588e-05/0.3276, allocations: 15.98 kB / 403.8 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002991/0.3279, allocations: 257.7 kB / 404 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.797e-05/0.328, allocations: 49.2 kB / 404.1 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.715e-05/0.3281, allocations: 17.78 kB / 404.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.3281, allocations: 11.92 kB / 404.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.885e-05/0.3281, allocations: 34.5 kB / 404.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.3281, allocations: 0 / 404.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002426/0.3284, allocations: 73.66 kB / 404.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.3284, allocations: 77.11 kB / 404.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.3286, allocations: 141.8 kB / 404.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.3286, allocations: 25.7 kB / 404.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.743e-05/0.3286, allocations: 88.12 kB / 404.5 MB, free: 4.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.3286, allocations: 4 kB / 404.5 MB, free: 4.844 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/0.3287, allocations: 17.67 kB / 404.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3288, allocations: 322.9 kB / 404.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.202e-05/0.3289, allocations: 11.98 kB / 404.9 MB, free: 4.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.771e-05/0.3289, allocations: 13.72 kB / 404.9 MB, free: 4.465 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.242e-05/0.329, allocations: 33.64 kB / 404.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.329, allocations: 4.062 kB / 404.9 MB, free: 4.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000108/0.3291, allocations: 53.67 kB / 405 MB, free: 4.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.3291, allocations: 8 kB / 405 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-06/0.3291, allocations: 0 / 405 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.3292, allocations: 0 / 405 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.947e-05/0.3292, allocations: 7.938 kB / 405 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.3292, allocations: 0 / 405 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.572e-05/0.3293, allocations: 7.984 kB / 405 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.3293, allocations: 0 / 405 MB, free: 4.34 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.988e-05/0.3294, allocations: 125.8 kB / 405.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.379e-05/0.3294, allocations: 41.64 kB / 405.2 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.3295, allocations: 15.88 kB / 405.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.3295, allocations: 0 / 405.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3295, allocations: 0 / 405.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3295, allocations: 4 kB / 405.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001596/0.3297, allocations: 173.5 kB / 405.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.3297, allocations: 0 / 405.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.183e-05/0.3297, allocations: 7.984 kB / 405.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3297, allocations: 11.97 kB / 405.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.3297, allocations: 0 / 405.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3298, allocations: 7.922 kB / 405.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3298, allocations: 0 / 405.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/0.3299, allocations: 164.3 kB / 405.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.974e-05/0.33, allocations: 89.05 kB / 405.6 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.33, allocations: 4.031 kB / 405.6 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.567e-05/0.3301, allocations: 7.984 kB / 405.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.77e-05/0.3301, allocations: 0 / 405.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.3301, allocations: 0 / 405.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.23e-05/0.3302, allocations: 122 kB / 405.8 MB, free: 3.477 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3302, allocations: 0 / 405.8 MB, free: 3.477 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.3304, allocations: 4 kB / 405.8 MB, free: 3.473 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 9.495e-05/0.3305, allocations: 99.98 kB / 405.9 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.3307, allocations: 27.92 kB / 405.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3307, allocations: 0 / 405.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.807e-05/0.3307, allocations: 11.98 kB / 405.9 MB, free: 3.328 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.331, allocations: 15.97 kB / 405.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003026/0.3313, allocations: 159.7 kB / 406.1 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.3316, allocations: 0.6961 MB / 406.8 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.528e-05/0.3317, allocations: 11.97 kB / 406.8 MB, free: 2.395 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.59e-05/0.3317, allocations: 7.438 kB / 406.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3317, allocations: 0 / 406.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of Templates: time 0.002663/0.3344, allocations: 0.5705 MB / 407.4 MB, free: 1.828 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