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.001223/0.001223, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 58.98 kB / 307.6 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09344/0.09478, allocations: 50.52 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003008/0.09783, allocations: 1.564 MB / 359.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.09887, allocations: 0.5532 MB / 360.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.09901, allocations: 4 kB / 360.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.551e-05/0.0991, allocations: 11.86 kB / 360.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.09924, allocations: 3.938 kB / 360.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003381/0.09959, allocations: 71.73 kB / 360.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.09971, allocations: 47.8 kB / 360.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.09983, allocations: 20.16 kB / 360.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.09996, allocations: 27.94 kB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.339e-05/0.1, allocations: 23.84 kB / 360.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.1001, allocations: 4 kB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.833e-05/0.1001, allocations: 4 kB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.069e-05/0.1002, allocations: 23.92 kB / 360.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.232e-05/0.1002, allocations: 23.81 kB / 360.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.1004, allocations: 63.67 kB / 360.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1004, allocations: 0 / 360.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1004, allocations: 0 / 360.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1004, allocations: 0 / 360.6 MB, free: 11.68 MB / 302.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.0004926/0.1009, allocations: 383.3 kB / 361 MB, free: 11.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.101, allocations: 11.97 kB / 361 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.1012, allocations: 24.83 kB / 361 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.1014, allocations: 199.7 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.1014, allocations: 4.375 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.1014, allocations: 7.938 kB / 361.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002605/0.1017, allocations: 97.05 kB / 361.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.1017, allocations: 3.938 kB / 361.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.1017, allocations: 4 kB / 361.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1017, allocations: 3.984 kB / 361.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.619e-05/0.1018, allocations: 23.92 kB / 361.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003228/0.1022, allocations: 257.8 kB / 361.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.654e-05/0.1023, allocations: 53.14 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.668e-05/0.1023, allocations: 17.78 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.1023, allocations: 7.969 kB / 361.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.1024, allocations: 38.56 kB / 361.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.1024, allocations: 0 / 361.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002446/0.1026, allocations: 69.61 kB / 361.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.1027, allocations: 77.11 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.1028, allocations: 145.7 kB / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.1028, allocations: 29.7 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.131e-05/0.1029, allocations: 96.06 kB / 362.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.1029, allocations: 7.844 kB / 362.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.103, allocations: 17.72 kB / 362.1 MB, free: 9.895 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.807e-05/0.1031, allocations: 319 kB / 362.4 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.077e-05/0.1031, allocations: 8 kB / 362.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.109e-05/0.1032, allocations: 25.7 kB / 362.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.592e-05/0.1032, allocations: 29.7 kB / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1032, allocations: 0 / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001185/0.1034, allocations: 61.59 kB / 362.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1034, allocations: 4 kB / 362.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1034, allocations: 7.938 kB / 362.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1034, allocations: 0 / 362.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.127e-05/0.1035, allocations: 7.984 kB / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.1035, allocations: 0 / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.879e-05/0.1036, allocations: 7.938 kB / 362.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.1036, allocations: 0 / 362.6 MB, free: 9.406 MB / 302.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.588e-05/0.1037, allocations: 121.8 kB / 362.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.169e-05/0.1037, allocations: 45.53 kB / 362.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.231e-05/0.1038, allocations: 11.88 kB / 362.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1038, allocations: 0 / 362.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1038, allocations: 0 / 362.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1038, allocations: 3.938 kB / 362.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.104, allocations: 169.7 kB / 362.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.104, allocations: 0 / 362.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.639e-05/0.104, allocations: 7.984 kB / 362.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.104, allocations: 4.031 kB / 362.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.104, allocations: 4 kB / 362.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1041, allocations: 0 / 362.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1041, allocations: 3.938 kB / 363 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.1042, allocations: 164.2 kB / 363.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.1043, allocations: 93 kB / 363.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.1043, allocations: 4.031 kB / 363.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.736e-05/0.1044, allocations: 4 kB / 363.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.079e-05/0.1044, allocations: 3.938 kB / 363.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.1044, allocations: 0 / 363.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.616e-05/0.1045, allocations: 118.6 kB / 363.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1045, allocations: 0 / 363.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002274/0.1048, allocations: 4 kB / 363.3 MB, free: 8.555 MB / 302.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.329e-05/0.1049, allocations: 95.25 kB / 363.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001346/0.105, allocations: 27.92 kB / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.105, allocations: 0 / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.048e-05/0.1051, allocations: 11.98 kB / 363.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.1055, allocations: 19.14 kB / 363.5 MB, free: 8.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003403/0.1058, allocations: 185.4 kB / 363.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.1061, allocations: 0.6885 MB / 364.4 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.125e-05/0.1061, allocations: 11.44 kB / 364.4 MB, free: 7.457 MB / 302.1 MB Notification: Performance of SimCode: time 2.104e-06/0.1061, allocations: 3.938 kB / 364.4 MB, free: 7.453 MB / 302.1 MB Notification: Performance of Templates: time 0.00223/0.1084, allocations: 0.7846 MB / 365.2 MB, free: 6.668 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/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