Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.001161/0.001161, allocations: 95.89 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 180 kB / 16.61 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.4 MB / 222.8 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09008/0.09008, allocations: 12.6 MB / 283.6 MB, free: 8.715 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007695/0.0007697, allocations: 24 kB / 344.5 MB, free: 21.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09766/0.09844, allocations: 50.39 MB / 394.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002447/0.1009, allocations: 1.538 MB / 396.4 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.1026, allocations: 0.9642 MB / 397.4 MB, free: 300 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.1027, allocations: 7.875 kB / 397.4 MB, free: 292 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002836/0.103, allocations: 51.8 kB / 397.5 MB, free: 240 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002514/0.1033, allocations: 79.75 kB / 397.5 MB, free: 160 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007301/0.104, allocations: 191.5 kB / 397.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.1043, allocations: 103.8 kB / 397.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.1045, allocations: 37.52 kB / 397.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.1046, allocations: 55.7 kB / 397.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.1047, allocations: 63.75 kB / 398 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.1047, allocations: 4 kB / 398 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.1049, allocations: 39.86 kB / 398 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.487e-05/0.105, allocations: 47.88 kB / 398.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.29e-05/0.105, allocations: 57.58 kB / 398.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.1053, allocations: 160 kB / 398.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.1053, allocations: 0 / 398.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1053, allocations: 0 / 398.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1053, allocations: 0 / 398.3 MB, free: 15.41 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007314/0.1061, allocations: 0.5115 MB / 398.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.1061, allocations: 8.031 kB / 398.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.526e-05/0.1062, allocations: 23.72 kB / 398.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.1066, allocations: 274.5 kB / 399.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.1066, allocations: 8 kB / 399.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.1066, allocations: 8 kB / 399.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003518/0.107, allocations: 155.5 kB / 399.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.107, allocations: 0 / 399.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.1071, allocations: 4 kB / 399.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.922e-06/0.1071, allocations: 0 / 399.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.1072, allocations: 31.98 kB / 399.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005892/0.1078, allocations: 382.3 kB / 399.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.1081, allocations: 119.9 kB / 399.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.1081, allocations: 8.062 kB / 399.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.1083, allocations: 83.44 kB / 399.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.833e-06/0.1083, allocations: 3.938 kB / 399.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004129/0.1088, allocations: 145.5 kB / 400 MB, free: 13.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.1089, allocations: 166.2 kB / 400.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003682/0.1093, allocations: 322.6 kB / 400.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.1093, allocations: 33.7 kB / 400.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.415e-05/0.1094, allocations: 132.3 kB / 400.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.89e-05/0.1095, allocations: 19.8 kB / 400.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-06/0.1095, allocations: 0 / 400.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1096, allocations: 330.8 kB / 401 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.405e-05/0.1097, allocations: 27.92 kB / 401 MB, free: 12.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.1098, allocations: 86.78 kB / 401.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.901e-05/0.1099, allocations: 40.05 kB / 401.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.11, allocations: 0 / 401.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002387/0.1102, allocations: 117.4 kB / 401.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.1102, allocations: 8 kB / 401.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1102, allocations: 4.125 kB / 401.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1103, allocations: 4 kB / 401.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.1104, allocations: 15.98 kB / 401.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.1104, allocations: 7.938 kB / 401.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.725e-05/0.1105, allocations: 11.95 kB / 401.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1105, allocations: 4 kB / 401.3 MB, free: 12.04 MB / 302.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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001612/0.1107, allocations: 161.5 kB / 401.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.061e-05/0.1108, allocations: 69.39 kB / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.025e-05/0.1108, allocations: 25.7 kB / 401.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1109, allocations: 4 kB / 401.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.1109, allocations: 0 / 401.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1109, allocations: 3.938 kB / 401.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.1111, allocations: 249.4 kB / 401.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1112, allocations: 0 / 401.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.842e-05/0.1112, allocations: 12 kB / 401.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.1112, allocations: 0 / 401.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1113, allocations: 48 / 401.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.1113, allocations: 7.984 kB / 401.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1113, allocations: 8.016 kB / 401.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.1116, allocations: 178 kB / 402 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.1117, allocations: 120.8 kB / 402.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.1117, allocations: 3.984 kB / 402.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.065e-05/0.1118, allocations: 16.06 kB / 402.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.1119, allocations: 11.94 kB / 402.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.1119, allocations: 7.938 kB / 402.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002416/0.1121, allocations: 237.9 kB / 402.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1121, allocations: 0 / 402.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002911/0.1124, allocations: 39.98 kB / 402.4 MB, free: 10.79 MB / 302.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,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009281/0.1134, allocations: 427.7 kB / 402.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002309/0.1136, allocations: 67.91 kB / 402.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1136, allocations: 0 / 402.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.192e-05/0.1137, allocations: 32.05 kB / 403 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.1141, allocations: 53.34 kB / 403 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006249/0.1147, allocations: 396.7 kB / 403.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.1151, allocations: 0.74 MB / 404.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.1152, allocations: 25.53 kB / 404.2 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.566e-05/0.1153, allocations: 31.42 kB / 404.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1153, allocations: 3.938 kB / 404.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of Templates: time 0.006653/0.1219, allocations: 2.607 MB / 406.8 MB, free: 6.355 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time