Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002089/0.002089, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.002078/0.002078, allocations: 188.5 kB / 18.67 MB, free: 4.41 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.515/1.515, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 55.91 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3076, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003467/0.3111, allocations: 1.873 MB / 403.3 MB, free: 7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.3131, allocations: 1.149 MB / 404.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.3132, allocations: 3.938 kB / 404.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.3136, allocations: 63.67 kB / 404.5 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.3138, allocations: 87.66 kB / 404.6 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007153/0.3146, allocations: 258.3 kB / 404.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.3148, allocations: 175.5 kB / 405 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.3149, allocations: 25.55 kB / 405 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.3151, allocations: 75.69 kB / 405.1 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.3152, allocations: 79.67 kB / 405.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.9e-05/0.3152, allocations: 8 kB / 405.2 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.3154, allocations: 67.89 kB / 405.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.667e-05/0.3155, allocations: 51.83 kB / 405.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.153e-05/0.3156, allocations: 83.47 kB / 405.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003277/0.3159, allocations: 232.3 kB / 405.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3159, allocations: 0 / 405.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3159, allocations: 0 / 405.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.316, allocations: 0 / 405.6 MB, free: 4.664 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008143/0.3168, allocations: 0.5376 MB / 406.1 MB, free: 4.074 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3168, allocations: 11.89 kB / 406.2 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.189e-05/0.3169, allocations: 24.66 kB / 406.2 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004227/0.3173, allocations: 287.6 kB / 406.5 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.3173, allocations: 8.375 kB / 406.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.3174, allocations: 8.125 kB / 406.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003536/0.3177, allocations: 157.3 kB / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.3178, allocations: 0 / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.3178, allocations: 4 kB / 406.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.3178, allocations: 3.938 kB / 406.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.3179, allocations: 39.91 kB / 406.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005588/0.3185, allocations: 378.5 kB / 407 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.3188, allocations: 123.9 kB / 407.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.357e-05/0.3189, allocations: 46.5 kB / 407.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.3189, allocations: 8 kB / 407.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/0.3191, allocations: 75.38 kB / 407.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.3191, allocations: 0 / 407.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004182/0.3195, allocations: 149.3 kB / 407.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.3197, allocations: 170.4 kB / 407.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000366/0.32, allocations: 322.7 kB / 407.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.3201, allocations: 29.7 kB / 407.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.3202, allocations: 132 kB / 408.1 MB, free: 1.906 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.906e-05/0.3202, allocations: 23.73 kB / 408.1 MB, free: 1.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.178e-05/0.3203, allocations: 29.7 kB / 408.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.3204, allocations: 334.8 kB / 408.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.144e-05/0.3205, allocations: 23.98 kB / 408.5 MB, free: 1.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.3206, allocations: 82.84 kB / 408.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.3208, allocations: 84.22 kB / 408.6 MB, free: 1.285 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3208, allocations: 4 kB / 408.6 MB, free: 1.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002263/0.321, allocations: 121.4 kB / 408.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.3211, allocations: 8 kB / 408.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.3211, allocations: 0 / 408.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3211, allocations: 0 / 408.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.3213, allocations: 23.92 kB / 408.8 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3213, allocations: 4.125 kB / 408.8 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.436e-05/0.3214, allocations: 11.84 kB / 408.8 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.3214, allocations: 11.98 kB / 408.8 MB, free: 1.098 MB / 318.1 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.0001318/0.3215, allocations: 150.1 kB / 409 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.772e-05/0.3216, allocations: 73.34 kB / 409 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.909e-05/0.3217, allocations: 29.7 kB / 409.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3217, allocations: 0 / 409.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3217, allocations: 4.062 kB / 409.1 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.3217, allocations: 7.938 kB / 409.1 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.322, allocations: 241.6 kB / 409.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.322, allocations: 0 / 409.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.39e-05/0.322, allocations: 11.98 kB / 409.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.322, allocations: 4 kB / 409.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.3221, allocations: 0 / 409.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3221, allocations: 3.938 kB / 409.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.3221, allocations: 7.938 kB / 409.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002754/0.3224, allocations: 182.4 kB / 409.5 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.3225, allocations: 104.9 kB / 409.6 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.3225, allocations: 7.984 kB / 409.6 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.244e-05/0.3226, allocations: 4 kB / 409.6 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.622e-05/0.3226, allocations: 11.98 kB / 409.6 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.3227, allocations: 7.938 kB / 409.7 MB, free: 156 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002502/0.3229, allocations: 237.9 kB / 409.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3229, allocations: 4 kB / 409.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002696/0.3232, allocations: 39.98 kB / 409.9 MB, free: 15.88 MB / 334.1 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.00105/0.3243, allocations: 417.3 kB / 410.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002392/0.3245, allocations: 71.89 kB / 410.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3245, allocations: 0 / 410.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.316e-05/0.3246, allocations: 32.17 kB / 410.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.325, allocations: 68.78 kB / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006627/0.3257, allocations: 402.6 kB / 410.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.3261, allocations: 0.7438 MB / 411.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.179e-05/0.3261, allocations: 23.42 kB / 411.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3261, allocations: 0 / 411.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of Templates: time 0.005211/0.3313, allocations: 2.903 MB / 414.6 MB, free: 11.34 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches