Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00166/0.001661, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001079/0.001079, allocations: 117.2 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009602/0.0009607, allocations: 51.91 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2853, allocations: 50.45 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003105/0.2884, allocations: 1.956 MB / 409 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.2905, allocations: 1.285 MB / 410.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.2907, allocations: 7.938 kB / 410.3 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003582/0.2911, allocations: 63.28 kB / 410.4 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002883/0.2914, allocations: 111.6 kB / 410.5 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006974/0.2921, allocations: 227.9 kB / 410.7 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002021/0.2923, allocations: 175.5 kB / 410.9 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.2925, allocations: 29.55 kB / 410.9 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.511e-05/0.2926, allocations: 75.62 kB / 411 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.2927, allocations: 71.69 kB / 411 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.2927, allocations: 4 kB / 411 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.2929, allocations: 51.97 kB / 411.1 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.763e-05/0.293, allocations: 59.69 kB / 411.2 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.459e-05/0.293, allocations: 75.48 kB / 411.2 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002666/0.2933, allocations: 232.8 kB / 411.5 MB, free: 23.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.2933, allocations: 4 kB / 411.5 MB, free: 23.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2933, allocations: 0 / 411.5 MB, free: 23.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2933, allocations: 0 / 411.5 MB, free: 23.42 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000712/0.2941, allocations: 0.5389 MB / 412 MB, free: 22.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.2941, allocations: 8.875 kB / 412 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.319e-05/0.2942, allocations: 24.66 kB / 412 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.2945, allocations: 287.6 kB / 412.3 MB, free: 22.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.2945, allocations: 8.375 kB / 412.3 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.2946, allocations: 16.11 kB / 412.3 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.2949, allocations: 151.6 kB / 412.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2949, allocations: 0 / 412.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.2949, allocations: 4 kB / 412.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.2949, allocations: 4 kB / 412.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001127/0.2951, allocations: 35.92 kB / 412.5 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004563/0.2955, allocations: 378.4 kB / 412.9 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.2957, allocations: 131.8 kB / 413 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.452e-05/0.2958, allocations: 42.56 kB / 413.1 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.2959, allocations: 8.062 kB / 413.1 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/0.2961, allocations: 87.22 kB / 413.2 MB, free: 21.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.713e-06/0.2961, allocations: 0 / 413.2 MB, free: 21.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003497/0.2965, allocations: 149.4 kB / 413.3 MB, free: 21.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.2966, allocations: 158.5 kB / 413.5 MB, free: 21.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002613/0.2968, allocations: 338.6 kB / 413.8 MB, free: 20.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.2968, allocations: 33.7 kB / 413.8 MB, free: 20.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.18e-05/0.2969, allocations: 128 kB / 413.9 MB, free: 20.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.297, allocations: 19.75 kB / 414 MB, free: 20.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.646e-05/0.297, allocations: 33.7 kB / 414 MB, free: 20.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.128e-05/0.2971, allocations: 330.8 kB / 414.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.263e-05/0.2972, allocations: 23.98 kB / 414.3 MB, free: 20.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.829e-05/0.2972, allocations: 94.78 kB / 414.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.2974, allocations: 84.22 kB / 414.5 MB, free: 20.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2974, allocations: 0 / 414.5 MB, free: 20.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001858/0.2976, allocations: 125.3 kB / 414.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.2976, allocations: 7.984 kB / 414.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.2976, allocations: 0 / 414.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.2976, allocations: 4 kB / 414.7 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.2977, allocations: 16 kB / 414.7 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.2978, allocations: 4 kB / 414.7 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.047e-05/0.2978, allocations: 16.05 kB / 414.7 MB, free: 19.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.2979, allocations: 4 kB / 414.7 MB, free: 19.83 MB / 298.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: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001082/0.298, allocations: 163.5 kB / 414.9 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.038e-05/0.298, allocations: 69.41 kB / 414.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.441e-05/0.2981, allocations: 29.7 kB / 414.9 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.2981, allocations: 0 / 414.9 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2981, allocations: 0 / 414.9 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2981, allocations: 3.938 kB / 415 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.2983, allocations: 249.6 kB / 415.2 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.2983, allocations: 0 / 415.2 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.802e-05/0.2984, allocations: 11.94 kB / 415.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.2984, allocations: 0 / 415.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.2984, allocations: 4 kB / 415.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2984, allocations: 7.922 kB / 415.2 MB, free: 19.24 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2984, allocations: 4 kB / 415.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005611/0.299, allocations: 0.7773 MB / 416 MB, free: 18.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.805e-05/0.2991, allocations: 116.8 kB / 416.1 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.2991, allocations: 7.938 kB / 416.1 MB, free: 18.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.028e-05/0.2992, allocations: 11.98 kB / 416.1 MB, free: 18.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.928e-05/0.2993, allocations: 4 kB / 416.1 MB, free: 18.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.2993, allocations: 7.984 kB / 416.1 MB, free: 18.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001864/0.2995, allocations: 245.9 kB / 416.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2995, allocations: 4 kB / 416.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003459/0.2998, allocations: 36 kB / 416.4 MB, free: 17.95 MB / 298.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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009125/0.3008, allocations: 418.8 kB / 416.8 MB, free: 17.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002149/0.301, allocations: 75.89 kB / 416.9 MB, free: 17.6 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.301, allocations: 0 / 416.9 MB, free: 17.6 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.567e-05/0.3011, allocations: 40.17 kB / 416.9 MB, free: 17.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004105/0.3015, allocations: 49.45 kB / 417 MB, free: 17.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006933/0.3022, allocations: 0.5447 MB / 417.5 MB, free: 16.92 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.3024, allocations: 0.7478 MB / 418.3 MB, free: 16.14 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.3025, allocations: 25.53 kB / 418.3 MB, free: 16.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.611e-05/0.3026, allocations: 19.44 kB / 418.3 MB, free: 16.1 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3026, allocations: 0 / 418.3 MB, free: 16.1 MB / 298.7 MB Notification: Performance of Templates: time 0.005557/0.3081, allocations: 2.846 MB / 421.2 MB, free: 13.28 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches