Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00117/0.00117, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001277, allocations: 207.9 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 56.09 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.39/0.3914, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003542/0.3949, allocations: 1.573 MB / 410.8 MB, free: 36 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.3962, allocations: 0.5454 MB / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.3963, allocations: 7.938 kB / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.896e-05/0.3964, allocations: 3.938 kB / 411.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.3966, allocations: 15.86 kB / 411.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003988/0.397, allocations: 63.2 kB / 411.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.3971, allocations: 47.78 kB / 411.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.3973, allocations: 24.16 kB / 411.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.3974, allocations: 23.88 kB / 411.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.61e-05/0.3975, allocations: 23.86 kB / 411.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.882e-05/0.3975, allocations: 0 / 411.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.241e-05/0.3976, allocations: 15.98 kB / 411.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.498e-05/0.3976, allocations: 15.92 kB / 411.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.426e-05/0.3977, allocations: 23.8 kB / 411.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.3979, allocations: 59.75 kB / 411.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3979, allocations: 0 / 411.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3979, allocations: 4 kB / 411.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.3979, allocations: 3.984 kB / 411.7 MB, free: 15.16 MB / 334.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.0005907/0.3985, allocations: 376.3 kB / 412 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.3985, allocations: 12.03 kB / 412 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.3987, allocations: 20.73 kB / 412.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.399, allocations: 207.6 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.399, allocations: 384 / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/0.3991, allocations: 11.94 kB / 412.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.3993, allocations: 109 kB / 412.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3994, allocations: 0 / 412.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.3994, allocations: 3.984 kB / 412.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3994, allocations: 0 / 412.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.626e-05/0.3995, allocations: 19.98 kB / 412.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003536/0.3998, allocations: 273.7 kB / 412.7 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.545e-05/0.3999, allocations: 33.22 kB / 412.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.081e-05/0.4, allocations: 25.77 kB / 412.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.4, allocations: 4 kB / 412.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.4001, allocations: 34.5 kB / 412.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/0.4001, allocations: 0 / 412.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002692/0.4003, allocations: 77.45 kB / 412.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/0.4004, allocations: 77.11 kB / 412.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.4006, allocations: 154 kB / 413.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.4006, allocations: 25.7 kB / 413.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.91e-05/0.4007, allocations: 92.14 kB / 413.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.4007, allocations: 0 / 413.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.4007, allocations: 21.61 kB / 413.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4009, allocations: 314.8 kB / 413.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.607e-05/0.4009, allocations: 11.98 kB / 413.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.301e-05/0.401, allocations: 21.72 kB / 413.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.754e-05/0.401, allocations: 33.58 kB / 413.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4011, allocations: 0 / 413.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001161/0.4012, allocations: 49.69 kB / 413.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.4012, allocations: 7.984 kB / 413.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4012, allocations: 4.125 kB / 413.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.4012, allocations: 4 kB / 413.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.211e-05/0.4013, allocations: 4 kB / 413.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.4013, allocations: 3.938 kB / 413.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.121e-05/0.4014, allocations: 15.94 kB / 413.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.4014, allocations: 0 / 413.7 MB, free: 12.89 MB / 334.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 8.773e-05/0.4015, allocations: 121.7 kB / 413.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.4015, allocations: 41.61 kB / 413.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.958e-05/0.4016, allocations: 11.86 kB / 413.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.4016, allocations: 4.031 kB / 413.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.4016, allocations: 0 / 413.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4016, allocations: 3.938 kB / 413.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001938/0.4018, allocations: 169.7 kB / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.4018, allocations: 0 / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.977e-05/0.4019, allocations: 4 kB / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.4019, allocations: 0 / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.4019, allocations: 7.984 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.4019, allocations: 0 / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.4019, allocations: 3.938 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.4021, allocations: 164.2 kB / 414.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.807e-05/0.4022, allocations: 93 kB / 414.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.4022, allocations: 0 / 414.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.348e-05/0.4023, allocations: 4 kB / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.4023, allocations: 7.922 kB / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-06/0.4023, allocations: 0 / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.718e-05/0.4024, allocations: 116.4 kB / 414.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4024, allocations: 0 / 414.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.4026, allocations: 4 kB / 414.4 MB, free: 12.04 MB / 334.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.0001175/0.4028, allocations: 103.2 kB / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001537/0.4029, allocations: 19.92 kB / 414.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4029, allocations: 0 / 414.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.163e-05/0.403, allocations: 16.12 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.4033, allocations: 19.95 kB / 414.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003664/0.4037, allocations: 167.5 kB / 414.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.4041, allocations: 0.6923 MB / 415.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.187e-05/0.4042, allocations: 160 / 415.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.031e-05/0.4042, allocations: 19.42 kB / 415.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4042, allocations: 0 / 415.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Templates: time 0.003747/0.408, allocations: 0.5839 MB / 416 MB, free: 10.38 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches