Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 115.5 kB / 17.07 MB, free: 6 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.001841/0.001841, allocations: 192 kB / 18 MB, free: 5.082 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.498/1.498, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3809, allocations: 49.42 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.005423/0.3864, allocations: 1.914 MB / 402.6 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002407/0.3888, allocations: 1.161 MB / 403.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002457/0.3891, allocations: 4 kB / 403.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004269/0.3896, allocations: 63.61 kB / 403.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004397/0.39, allocations: 103.5 kB / 404 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.3911, allocations: 260.1 kB / 404.2 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003127/0.3914, allocations: 179.5 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.3916, allocations: 45.52 kB / 404.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.3917, allocations: 71.7 kB / 404.5 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.3919, allocations: 87.61 kB / 404.6 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.3919, allocations: 8 kB / 404.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.3921, allocations: 71.89 kB / 404.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.472e-05/0.3922, allocations: 51.83 kB / 404.7 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.3923, allocations: 83.41 kB / 404.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.3927, allocations: 244.3 kB / 405 MB, free: 4.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3927, allocations: 4 kB / 405 MB, free: 4.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3927, allocations: 0 / 405 MB, free: 4.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.3928, allocations: 0 / 405 MB, free: 4.531 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008731/0.3936, allocations: 0.542 MB / 405.6 MB, free: 3.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.3937, allocations: 11.89 kB / 405.6 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.3938, allocations: 24.66 kB / 405.6 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005469/0.3943, allocations: 307.4 kB / 405.9 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.3944, allocations: 8.375 kB / 405.9 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.3944, allocations: 8.125 kB / 405.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/0.3948, allocations: 175.8 kB / 406.1 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.3949, allocations: 11.94 kB / 406.1 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.3949, allocations: 3.938 kB / 406.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.3949, allocations: 0 / 406.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.3951, allocations: 35.98 kB / 406.1 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007122/0.3958, allocations: 399.2 kB / 406.5 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.3961, allocations: 142.5 kB / 406.7 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/0.3963, allocations: 63.36 kB / 406.7 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.3963, allocations: 4.062 kB / 406.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002028/0.3965, allocations: 87.28 kB / 406.8 MB, free: 2.496 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 2.064e-06/0.3965, allocations: 0 / 406.8 MB, free: 2.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005292/0.3971, allocations: 169.3 kB / 407 MB, free: 2.324 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001673/0.3973, allocations: 191.9 kB / 407.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00043/0.3977, allocations: 334.6 kB / 407.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.3978, allocations: 33.7 kB / 407.5 MB, free: 1.719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.3979, allocations: 120.4 kB / 407.7 MB, free: 1.594 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/0.398, allocations: 20.17 kB / 407.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.14e-05/0.3981, allocations: 37.7 kB / 407.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3982, allocations: 334.8 kB / 408 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.042e-05/0.3983, allocations: 23.98 kB / 408.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.3985, allocations: 104.5 kB / 408.2 MB, free: 1.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.3987, allocations: 101.9 kB / 408.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3987, allocations: 0 / 408.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003318/0.3991, allocations: 149.5 kB / 408.4 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3991, allocations: 4 kB / 408.4 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3991, allocations: 4 kB / 408.4 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.3991, allocations: 0 / 408.4 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.3993, allocations: 27.92 kB / 408.4 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3993, allocations: 0 / 408.4 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.736e-05/0.3994, allocations: 19.78 kB / 408.5 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.3994, allocations: 8.188 kB / 408.5 MB, free: 0.7031 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,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 (13): * Single equations (assignments): 13 * 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.0001481/0.3996, allocations: 162.3 kB / 408.6 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.3997, allocations: 77.34 kB / 408.7 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.426e-05/0.3998, allocations: 33.64 kB / 408.7 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3998, allocations: 4 kB / 408.7 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3998, allocations: 0 / 408.7 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3998, allocations: 3.938 kB / 408.7 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002668/0.4001, allocations: 245.7 kB / 409 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4001, allocations: 0 / 409 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.705e-05/0.4002, allocations: 12 kB / 409 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.4002, allocations: 0 / 409 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.4002, allocations: 7.984 kB / 409 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.4002, allocations: 3.984 kB / 409 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4002, allocations: 4 kB / 409 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000329/0.4006, allocations: 195.2 kB / 409.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.4007, allocations: 116.7 kB / 409.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.4007, allocations: 11.94 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.132e-05/0.4008, allocations: 4 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.161e-05/0.4009, allocations: 11.98 kB / 409.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.4009, allocations: 7.938 kB / 409.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002596/0.4012, allocations: 245.9 kB / 409.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4012, allocations: 4 kB / 409.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.4015, allocations: 32 kB / 409.6 MB, free: 15.43 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.001103/0.4026, allocations: 430.5 kB / 410.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002834/0.4029, allocations: 83.84 kB / 410.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4029, allocations: 0 / 410.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.428e-05/0.403, allocations: 32.3 kB / 410.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004625/0.4035, allocations: 81.02 kB / 410.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007196/0.4042, allocations: 386 kB / 410.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.4046, allocations: 0.7517 MB / 411.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.568e-05/0.4047, allocations: 21.55 kB / 411.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.39e-05/0.4048, allocations: 27.42 kB / 411.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4048, allocations: 0 / 411.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of Templates: time 0.008439/0.4132, allocations: 3.06 MB / 414.5 MB, free: 10.7 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches