Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000847/0.000847, allocations: 174 kB / 16.77 MB, free: 4.902 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.204/1.204, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000745/0.000745, allocations: 89.03 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06134/0.06134, allocations: 12.21 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003618, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0691/0.06948, allocations: 50.28 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.001642/0.07115, allocations: 1.544 MB / 444 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.07225, allocations: 1.003 MB / 445 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.389e-05/0.07235, allocations: 0 / 445 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.07259, allocations: 63.8 kB / 445.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.07275, allocations: 79.72 kB / 445.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.0732, allocations: 195.6 kB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.07335, allocations: 147.6 kB / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.154e-05/0.07345, allocations: 29.56 kB / 445.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.983e-05/0.07355, allocations: 67.62 kB / 445.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.33e-05/0.07363, allocations: 63.69 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.07365, allocations: 4 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.797e-05/0.07376, allocations: 51.97 kB / 445.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.44e-05/0.07382, allocations: 51.83 kB / 445.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.926e-05/0.07388, allocations: 85.25 kB / 445.9 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.07404, allocations: 167.9 kB / 446 MB, free: 12.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.07406, allocations: 4 kB / 446 MB, free: 12.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.07406, allocations: 0 / 446 MB, free: 12.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.07407, allocations: 0 / 446 MB, free: 12.99 MB / 298.7 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.0004964/0.07457, allocations: 0.5 MB / 446.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.07461, allocations: 15.97 kB / 446.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.261e-05/0.07465, allocations: 34.75 kB / 446.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.643e-05/0.07469, allocations: 24.66 kB / 446.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.07494, allocations: 287.6 kB / 446.9 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.07496, allocations: 8.375 kB / 446.9 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.07498, allocations: 11.94 kB / 446.9 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.07525, allocations: 163.5 kB / 447.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.07527, allocations: 0 / 447.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.07528, allocations: 0 / 447.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.07529, allocations: 8 kB / 447.1 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.157e-05/0.07539, allocations: 43.89 kB / 447.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003522/0.07575, allocations: 382.3 kB / 447.5 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.07594, allocations: 115.9 kB / 447.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.907e-05/0.07602, allocations: 50.55 kB / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.07605, allocations: 0 / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000152/0.07621, allocations: 83.33 kB / 447.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.07622, allocations: 0 / 447.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002963/0.07652, allocations: 145.4 kB / 447.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.07657, allocations: 162.2 kB / 448 MB, free: 10.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002257/0.0768, allocations: 338.8 kB / 448.4 MB, free: 10.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.07682, allocations: 25.7 kB / 448.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.12e-05/0.07688, allocations: 132.1 kB / 448.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.0769, allocations: 15.8 kB / 448.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-06/0.07691, allocations: 4 kB / 448.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.041e-05/0.07697, allocations: 326.8 kB / 448.9 MB, free: 9.852 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.692e-05/0.07703, allocations: 23.98 kB / 448.9 MB, free: 9.828 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.7e-05/0.07711, allocations: 94.78 kB / 449 MB, free: 9.711 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.07723, allocations: 76.22 kB / 449.1 MB, free: 9.621 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.07724, allocations: 4 kB / 449.1 MB, free: 9.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001754/0.07742, allocations: 121.4 kB / 449.2 MB, free: 9.492 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.07744, allocations: 4 kB / 449.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.07745, allocations: 4 kB / 449.2 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-06/0.07747, allocations: 0 / 449.2 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.177e-05/0.07756, allocations: 19.98 kB / 449.2 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.07758, allocations: 3.938 kB / 449.2 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.878e-05/0.07765, allocations: 19.78 kB / 449.2 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.806e-06/0.07766, allocations: 8.109 kB / 449.2 MB, free: 9.434 MB / 298.7 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 9.091e-05/0.07776, allocations: 158.8 kB / 449.4 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.865e-05/0.07782, allocations: 69.34 kB / 449.5 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.187e-05/0.07787, allocations: 29.7 kB / 449.5 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.07788, allocations: 0 / 449.5 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.07789, allocations: 0 / 449.5 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.0779, allocations: 11.88 kB / 449.5 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.07803, allocations: 237.6 kB / 449.7 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-06/0.07804, allocations: 64 / 449.7 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.74e-05/0.0781, allocations: 15.98 kB / 449.7 MB, free: 8.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.07811, allocations: 0 / 449.7 MB, free: 8.859 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.07812, allocations: 8 kB / 449.8 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.07813, allocations: 0 / 449.8 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.07814, allocations: 4 kB / 449.8 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002016/0.07834, allocations: 166.4 kB / 449.9 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.632e-05/0.07842, allocations: 116.8 kB / 450 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.07845, allocations: 4 kB / 450 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.235e-05/0.07852, allocations: 4 kB / 450 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.07857, allocations: 19.86 kB / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.07859, allocations: 4 kB / 450.1 MB, free: 8.496 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000157/0.07875, allocations: 241.9 kB / 450.3 MB, free: 8.258 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07876, allocations: 0 / 450.3 MB, free: 8.258 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002237/0.07898, allocations: 35.91 kB / 450.3 MB, free: 8.223 MB / 298.7 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.001001/0.07999, allocations: 1.008 MB / 451.3 MB, free: 7.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.08018, allocations: 72.03 kB / 451.4 MB, free: 7.109 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.08019, allocations: 4 kB / 451.4 MB, free: 7.105 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.385e-05/0.08026, allocations: 31.92 kB / 451.4 MB, free: 7.074 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.08062, allocations: 64.45 kB / 451.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.08191, allocations: 1.198 MB / 452.7 MB, free: 5.738 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001428/0.08206, allocations: 0.7478 MB / 453.5 MB, free: 4.965 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.011e-05/0.08214, allocations: 59.41 kB / 453.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.08214, allocations: 0 / 453.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.816/2.898, allocations: 3.419 MB / 456.9 MB, free: 1.488 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_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.u,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,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.timeScaled,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.n,table.realToInteger.u,table.realToInteger.y,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],table.y,time