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.001511/0.001511, allocations: 108.2 kB / 16.62 MB, free: 6.961 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.001811/0.001811, allocations: 189.8 kB / 17.54 MB, free: 6.066 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.338/1.338, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 46.42 kB / 300.1 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09288/0.09394, allocations: 49.44 MB / 349.6 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.00329/0.09726, allocations: 1.604 MB / 351.2 MB, free: 2.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009185/0.09821, allocations: 494.7 kB / 351.7 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.09835, allocations: 4 kB / 351.7 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.032e-05/0.09847, allocations: 3.938 kB / 351.7 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.09865, allocations: 3.938 kB / 351.7 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.09901, allocations: 48.39 kB / 351.7 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.09912, allocations: 43.8 kB / 351.8 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.09923, allocations: 24.16 kB / 351.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.733e-05/0.09931, allocations: 19.94 kB / 351.8 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.443e-05/0.09937, allocations: 19.86 kB / 351.8 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.0994, allocations: 4 kB / 351.8 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.389e-05/0.09942, allocations: 4 kB / 351.8 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.905e-05/0.09947, allocations: 19.91 kB / 351.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.396e-05/0.09951, allocations: 27.81 kB / 351.9 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.09962, allocations: 51.8 kB / 351.9 MB, free: 2.18 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.09963, allocations: 8 kB / 351.9 MB, free: 2.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.09964, allocations: 3.938 kB / 351.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.09965, allocations: 0 / 351.9 MB, free: 2.168 MB / 286.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.0004501/0.1001, allocations: 385.6 kB / 352.3 MB, free: 1.746 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1002, allocations: 12.03 kB / 352.3 MB, free: 1.734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.985e-05/0.1002, allocations: 8.844 kB / 352.3 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.1004, allocations: 192.1 kB / 352.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.1004, allocations: 4.375 kB / 352.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.1004, allocations: 384 / 352.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002492/0.1007, allocations: 113.2 kB / 352.6 MB, free: 1.367 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.1007, allocations: 0 / 352.6 MB, free: 1.367 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.1007, allocations: 4 kB / 352.6 MB, free: 1.363 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.1007, allocations: 0 / 352.6 MB, free: 1.363 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.495e-05/0.1008, allocations: 15.92 kB / 352.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002843/0.1011, allocations: 265.8 kB / 352.9 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.989e-05/0.1012, allocations: 49.14 kB / 353 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.63e-05/0.1013, allocations: 17.78 kB / 353 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.1013, allocations: 4 kB / 353 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.1013, allocations: 34.56 kB / 353 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 2.855e-06/0.1013, allocations: 3.984 kB / 353 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002247/0.1016, allocations: 69.52 kB / 353.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.1016, allocations: 77.36 kB / 353.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.1017, allocations: 153.1 kB / 353.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.1017, allocations: 25.7 kB / 353.3 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.096e-05/0.1018, allocations: 84.14 kB / 353.4 MB, free: 464 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.1018, allocations: 7.938 kB / 353.4 MB, free: 456 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.1019, allocations: 25.55 kB / 353.5 MB, free: 424 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.003e-05/0.102, allocations: 318.8 kB / 353.8 MB, free: 96 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.419e-05/0.102, allocations: 11.98 kB / 353.8 MB, free: 84 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.348e-05/0.1021, allocations: 25.66 kB / 353.8 MB, free: 52 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.217e-05/0.1021, allocations: 29.7 kB / 353.8 MB, free: 16 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1022, allocations: 0 / 353.8 MB, free: 16 kB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001264/0.1023, allocations: 53.67 kB / 353.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1023, allocations: 8.125 kB / 353.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1023, allocations: 4 kB / 353.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.1023, allocations: 3.938 kB / 353.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.38e-05/0.1024, allocations: 4 kB / 353.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1024, allocations: 0 / 353.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.656e-05/0.1025, allocations: 4 kB / 353.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.301e-06/0.1025, allocations: 0 / 353.9 MB, free: 15.93 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.275e-05/0.1026, allocations: 121.8 kB / 354 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.111e-05/0.1026, allocations: 41.55 kB / 354.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.1027, allocations: 19.89 kB / 354.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1027, allocations: 3.938 kB / 354.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1027, allocations: 0 / 354.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1027, allocations: 4 kB / 354.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.1029, allocations: 173.6 kB / 354.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1029, allocations: 0 / 354.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.472e-05/0.1029, allocations: 4 kB / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1029, allocations: 0 / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.1029, allocations: 4 kB / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1029, allocations: 0 / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.103, allocations: 0 / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/0.1031, allocations: 164.2 kB / 354.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.417e-05/0.1032, allocations: 93 kB / 354.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.1032, allocations: 0 / 354.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.891e-05/0.1033, allocations: 7.938 kB / 354.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.368e-05/0.1033, allocations: 3.984 kB / 354.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-06/0.1033, allocations: 4.031 kB / 354.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.917e-05/0.1034, allocations: 107.3 kB / 354.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1034, allocations: 0 / 354.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002292/0.1036, allocations: 8 kB / 354.7 MB, free: 15.08 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 8.242e-05/0.1037, allocations: 107.1 kB / 354.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.1039, allocations: 19.98 kB / 354.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1039, allocations: 4.125 kB / 354.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.876e-05/0.1039, allocations: 11.94 kB / 354.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.1043, allocations: 26.33 kB / 354.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003746/0.1047, allocations: 175.7 kB / 355 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.105, allocations: 0.6885 MB / 355.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.39e-05/0.105, allocations: 8.25 kB / 355.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.448e-05/0.105, allocations: 7.438 kB / 355.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.105, allocations: 0 / 355.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of Templates: time 0.002703/0.1078, allocations: 0.5512 MB / 356.2 MB, free: 13.44 MB / 302.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