Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001446, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 226.6 MB / 244.3 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007548/0.0007548, allocations: 106.1 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002413/0.0002414, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2936, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001652/0.2953, allocations: 1.253 MB / 408.8 MB, free: 26.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000779/0.2961, allocations: 0.5044 MB / 409.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.115e-05/0.2963, allocations: 7.938 kB / 409.3 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.57e-05/0.2963, allocations: 0 / 409.3 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001425/0.2965, allocations: 4.531 kB / 409.3 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.2968, allocations: 52.33 kB / 409.3 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.132e-05/0.2969, allocations: 40.55 kB / 409.4 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.297, allocations: 22.81 kB / 409.4 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.2971, allocations: 19.94 kB / 409.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.082e-05/0.2972, allocations: 19.86 kB / 409.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.2972, allocations: 0 / 409.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.683e-05/0.2973, allocations: 4 kB / 409.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.572e-05/0.2973, allocations: 19.91 kB / 409.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.186e-05/0.2973, allocations: 34.33 kB / 409.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.705e-05/0.2974, allocations: 36.47 kB / 409.5 MB, free: 25.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2974, allocations: 0 / 409.5 MB, free: 25.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2975, allocations: 1.031 kB / 409.5 MB, free: 25.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2975, allocations: 0 / 409.5 MB, free: 25.81 MB / 298.7 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.0004309/0.2979, allocations: 368.9 kB / 409.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.298, allocations: 11.47 kB / 409.9 MB, free: 25.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.2981, allocations: 19.89 kB / 409.9 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.2983, allocations: 201 kB / 410.1 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.2983, allocations: 3.953 kB / 410.1 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.2983, allocations: 4 kB / 410.1 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.2986, allocations: 115 kB / 410.2 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2986, allocations: 0 / 410.2 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.2986, allocations: 4 kB / 410.2 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.2987, allocations: 0 / 410.2 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.907e-05/0.2987, allocations: 23.92 kB / 410.2 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002648/0.299, allocations: 257.8 kB / 410.5 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.398e-05/0.2991, allocations: 57.16 kB / 410.6 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.773e-05/0.2992, allocations: 29.75 kB / 410.6 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.2992, allocations: 0 / 410.6 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.2992, allocations: 30.56 kB / 410.6 MB, free: 24.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 7.51e-07/0.2992, allocations: 4 kB / 410.6 MB, free: 24.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002437/0.2995, allocations: 73.52 kB / 410.7 MB, free: 24.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.2995, allocations: 77.11 kB / 410.8 MB, free: 24.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.842e-05/0.2996, allocations: 145.8 kB / 410.9 MB, free: 24.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.127e-06/0.2996, allocations: 25.95 kB / 410.9 MB, free: 24.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.153e-05/0.2997, allocations: 88.14 kB / 411 MB, free: 24.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.309e-05/0.2997, allocations: 7.906 kB / 411 MB, free: 24.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-06/0.2997, allocations: 0 / 411 MB, free: 24.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.496e-05/0.2998, allocations: 322.8 kB / 411.3 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.051e-05/0.2998, allocations: 8 kB / 411.4 MB, free: 23.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.735e-05/0.2999, allocations: 29.64 kB / 411.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.211e-05/0.2999, allocations: 12.06 kB / 411.4 MB, free: 23.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2999, allocations: 0 / 411.4 MB, free: 23.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001054/0.3, allocations: 53.69 kB / 411.4 MB, free: 23.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3001, allocations: 7.984 kB / 411.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.3001, allocations: 3.938 kB / 411.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3001, allocations: 4.062 kB / 411.5 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.805e-05/0.3002, allocations: 11.94 kB / 411.5 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.3002, allocations: 0 / 411.5 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.847e-05/0.3002, allocations: 7.938 kB / 411.5 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.3002, allocations: 0 / 411.5 MB, free: 23.6 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.567e-05/0.3003, allocations: 121.8 kB / 411.6 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.71e-05/0.3004, allocations: 41.61 kB / 411.6 MB, free: 23.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.053e-05/0.3004, allocations: 15.89 kB / 411.7 MB, free: 23.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3004, allocations: 0 / 411.7 MB, free: 23.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3004, allocations: 0 / 411.7 MB, free: 23.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3004, allocations: 0 / 411.7 MB, free: 23.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.3006, allocations: 177.5 kB / 411.8 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3006, allocations: 4 kB / 411.8 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.366e-05/0.3006, allocations: 4 kB / 411.8 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.3006, allocations: 4 kB / 411.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.3006, allocations: 0 / 411.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3007, allocations: 3.938 kB / 411.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3007, allocations: 3.984 kB / 411.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001349/0.3008, allocations: 168.3 kB / 412 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.765e-05/0.3008, allocations: 89 kB / 412.1 MB, free: 22.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.3009, allocations: 0 / 412.1 MB, free: 22.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.449e-05/0.3009, allocations: 8 kB / 412.1 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/0.301, allocations: 8.016 kB / 412.1 MB, free: 22.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.301, allocations: 0 / 412.1 MB, free: 22.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.513e-05/0.301, allocations: 110.5 kB / 412.2 MB, free: 22.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.301, allocations: 0 / 412.2 MB, free: 22.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002017/0.3013, allocations: 4 kB / 412.2 MB, free: 22.74 MB / 298.7 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 (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.0001121/0.3014, allocations: 99.23 kB / 412.3 MB, free: 22.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001524/0.3015, allocations: 31.92 kB / 412.4 MB, free: 22.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3015, allocations: 0 / 412.4 MB, free: 22.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.74e-05/0.3016, allocations: 8 kB / 412.4 MB, free: 22.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.302, allocations: 19.97 kB / 412.4 MB, free: 22.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00032/0.3023, allocations: 215.3 kB / 412.6 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.3025, allocations: 0.6896 MB / 413.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.617e-05/0.3026, allocations: 11.44 kB / 413.3 MB, free: 21.6 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3026, allocations: 0 / 413.3 MB, free: 21.6 MB / 298.7 MB Notification: Performance of Templates: time 0.002202/0.3048, allocations: 0.7637 MB / 414.1 MB, free: 20.85 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches